xref: /libCEED/.github/workflows/c-fortran-test-icc.yml (revision d83cf49fece5d7d5441d5b92eb712b904329a4d2)
149a40c8aSKenneth E. Jansenname: ICX and IFX
23446d1b5SJeremy L Thompson
33446d1b5SJeremy L Thompsonon:
43446d1b5SJeremy L Thompson  push:
5dcd9f19cSJeremy L Thompson    branches:
6dcd9f19cSJeremy L Thompson      - main
7dcd9f19cSJeremy L Thompson  pull_request:
83446d1b5SJeremy L Thompson
96c00a25aSJeremy L Thompsonenv:
100983a37fSRobert Cohn  LINUX_CPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
117113573bSJames Wright  LINUX_FORTRAN_COMPONENTS: intel-oneapi-compiler-fortran
126c00a25aSJeremy L Thompson
133446d1b5SJeremy L Thompsonjobs:
143446d1b5SJeremy L Thompson  test:
153446d1b5SJeremy L Thompson    strategy:
163446d1b5SJeremy L Thompson      matrix:
17*d83cf49fSJeremy L Thompson        os: [ubuntu-24.04]
183446d1b5SJeremy L Thompson
193446d1b5SJeremy L Thompson    runs-on: ${{ matrix.os }}
203446d1b5SJeremy L Thompson
213446d1b5SJeremy L Thompson    steps:
22e735508cSJeremy L Thompson      - uses: actions/checkout@v4
233446d1b5SJeremy L Thompson      - name: Install Intel compilers
2449a40c8aSKenneth E. Jansen        uses: rscohn2/setup-oneapi@v0
2549a40c8aSKenneth E. Jansen        with:
2649a40c8aSKenneth E. Jansen          components: |
2749a40c8aSKenneth E. Jansen            icx
2849a40c8aSKenneth E. Jansen            ifx
293446d1b5SJeremy L Thompson      - name: Build and test libCEED
303446d1b5SJeremy L Thompson        run: |
3149a40c8aSKenneth E. Jansen          source /opt/intel/oneapi/setvars.sh
3249a40c8aSKenneth E. Jansen          export CC=icx CXX=icx FC=ifx
3349a40c8aSKenneth E. Jansen          export OPENMP=1
3449a40c8aSKenneth E. Jansen          make info
3549a40c8aSKenneth E. Jansen          make -j2
3649a40c8aSKenneth E. Jansen          PROVE_OPTS=-v make prove -j2
373446d1b5SJeremy L Thompson
38