Skip to content

Commit 1b46701

Browse files
committed
ci:oneapi: set FC,CC to ensure oneapi used
1 parent 7c47f71 commit 1b46701

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/oneapi-linux.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ env:
77
LINUX_MPI_COMPONENTS: "intel-oneapi-mpi intel-oneapi-mpi-devel"
88
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml
99
CTEST_NO_TESTS_ACTION: error
10+
CC: icx
11+
FC: ifx
1012

1113
on:
1214
push:
@@ -43,16 +45,22 @@ jobs:
4345
timeout-minutes: 10
4446
run: |
4547
sh -c .github/workflows/oneapi_setup_apt_repo_linux.sh
46-
sudo apt install ${{ env.LINUX_CPP_COMPONENTS }} ${{ env.LINUX_FORTRAN_COMPONENTS }} ${{ env.LINUX_MPI_COMPONENTS }}
48+
sudo apt install --no-install-recommends ${{ env.LINUX_CPP_COMPONENTS }} ${{ env.LINUX_FORTRAN_COMPONENTS }} ${{ env.LINUX_MPI_COMPONENTS }}
4749
4850
- name: Setup Intel oneAPI environment
4951
run: |
5052
source /opt/intel/oneapi/setvars.sh
5153
printenv >> $GITHUB_ENV
5254
55+
- name: patch PATH (this should be done by setvar.sh)
56+
run: echo "/opt/intel/oneapi/compiler/latest/bin" >> $GITHUB_PATH
57+
5358
- name: print env
5459
run: printenv
5560

61+
- name: ls compiler dir
62+
run: ls /opt/intel/oneapi/compiler/
63+
5664
- name: install Ninja
5765
run: sudo apt install ninja-build
5866
# install ninja needs to be own step as not cached by design

0 commit comments

Comments
 (0)