Skip to content

Commit a92b99b

Browse files
committed
export install path
1 parent eee5c81 commit a92b99b

2 files changed

Lines changed: 9 additions & 14 deletions

File tree

.github/actions/install-repo/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ runs:
4444
- name: Build Cmake
4545
if: ${{ !steps.check-cache.outputs.cache-hit }}
4646
shell: bash
47-
run: cmake --build ${{ runner.temp }}/build-${{ inputs.repo-name }} -j8 --target install
47+
run: cmake --build ${{ runner.temp }}/build-${{ inputs.repo-name }} -j8 --target install
48+
49+
- name: Export Install Path
50+
shell: bash
51+
run: export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:${{ runner.temp }}/build-${{ inputs.repo-name }}/install

.github/workflows/cmake.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ jobs:
6161
-DOmega_h_USE_MPI=on
6262
-DBUILD_TESTING=off
6363
-DCMAKE_C_COMPILER=mpicc
64-
-DCMAKE_CXX_COMPILER=mpicxx
65-
-DKokkos_PREFIX=${{ runner.temp }}/build-kokkos/install/lib/cmake'
64+
-DCMAKE_CXX_COMPILER=mpicxx'
6665

6766
- name: build Engpar
6867
uses: ./.github/actions/install-repo
@@ -87,8 +86,7 @@ jobs:
8786
cache: true
8887
options: '-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
8988
-DCMAKE_BUILD_TYPE=Release
90-
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=ON
91-
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-kokkos/install/lib/cmake'
89+
-DCMAKE_DISABLE_FIND_PACKAGE_HDF5=ON'
9290

9391
- name: build pumi-pic
9492
uses: ./.github/actions/install-repo
@@ -100,12 +98,7 @@ jobs:
10098
cache: true
10199
options: '-DCMAKE_CXX_COMPILER=mpicxx
102100
-DTEST_DATA_DIR=$GITHUB_WORKSPACE/pumi-pic/pumipic-data
103-
-DOmega_h_PREFIX=${{ runner.temp }}/build-omega_h/install
104-
-DKokkos_PREFIX=${{ runner.temp }}/build-kokkos/install
105-
-DEnGPar_PREFIX=${{ runner.temp }}/build-Engpar/install
106-
-DCabana_PREFIX=${{ runner.temp }}/build-cabana/install
107-
-DENABLE_CABANA=on
108-
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-kokkos/install/lib/cmake'
101+
-DENABLE_CABANA=on'
109102

110103
- name: build polyMPO
111104
uses: ./.github/actions/install-repo
@@ -115,9 +108,7 @@ jobs:
115108
submodules: 'recursive'
116109
repo-ref: ''
117110
cache: false
118-
options: '-DCMAKE_BUILD_TYPE="Debug"
119-
-DKokkos_DIR=${{ runner.temp }}/build-kokkos/install/lib64/cmake/Kokkos
120-
-DCMAKE_PREFIX_PATH=${{ runner.temp }}/build-pumi-pic/install
111+
options: '-DCMAKE_BUILD_TYPE=Debug
121112
-DIS_TESTING=on
122113
-DCMAKE_CXX_COMPILER=mpicxx'
123114

0 commit comments

Comments
 (0)