Skip to content

Commit

Permalink
Set OCCA_INSTALL_DIR in GitHub CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Nov 20, 2024
1 parent 4d1801f commit 31cacda
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set OCCA install directory
run: echo "OCCA_INSTALL_DIR=${PWD}/install" >> ${GITHUB_ENV}

- name: add oneAPI to apt
if: ${{ matrix.useoneAPI }}
shell: bash
Expand All @@ -104,14 +107,14 @@ jobs:
- name: Compiler info
if: ${{ !matrix.useCMake }}
run: make -j 16 info
run: make PREFIX=${{ env.OCCA_INSTALL_DIR }} -j 16 info

- name: CMake configure
if: ${{ matrix.useCMake && !matrix.useoneAPI}}
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_INSTALL_PREFIX=${{ env.OCCA_INSTALL_DIR }} \
-DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_Fortran_COMPILER=${FC} \
Expand All @@ -128,7 +131,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
cmake -S . -B build \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_INSTALL_PREFIX=${{ env.OCCA_INSTALL_DIR }} \
-DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_Fortran_COMPILER=${FC} \
Expand Down

0 comments on commit 31cacda

Please sign in to comment.