xref: /libCEED/.github/workflows/c-fortran-test-icc.yml (revision a66bea3d12f6983000c98f7c3e64307c7113d79b)
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:
17d83cf49fSJeremy 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
35*d402b6f8SJeremy L Thompson          make -j
36*d402b6f8SJeremy L Thompson          make prove -j
373446d1b5SJeremy L Thompson
38