Skip to content

Commit f2b558e

Browse files
committed
update CI
1 parent c6f94ca commit f2b558e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/perlmutter-no-cache.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ concurrency:
99
env:
1010
GOOGLE_CREDENTIALS: "${{ secrets.GOOGLE_CREDENTIALS }}"
1111
GOOGLE_SPREADSHEET_ID: "${{ secrets.GOOGLE_SPREADSHEET_ID }}"
12-
PDC_BUILD_PATH: "${{ github.workspace }}/${{ github.run_id }}"
12+
PDC_PATH: "${{ github.workspace }}/${{ github.run_id }}"
13+
PDC_BUILD_PATH: "${{ github.workspace }}/${{ github.run_id }}/build"
14+
PDC_INSTALL_PATH: "${{ github.workspace }}/${{ github.run_id }}/install"
1315
PDC_TMPDIR: "${{ github.workspace }}/${{ github.run_id }}/pdc-tmp-paralell-pdc"
1416
PDC_DATA_LOC: "${{ github.workspace }}/${{ github.run_id }}/pdc-data-paralell-pdc"
1517
SCHEDULER_PARAMETERS: "-A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64 -N 1 -t 00:30:00"
@@ -25,23 +27,21 @@ jobs:
2527
steps:
2628
- uses: actions/[email protected]
2729
with:
28-
fetch-depth: 20
29-
lfs: true
30+
path: ${PDC_PATH}
3031
- run: |
3132
echo "MERCURY_DIR = $MERCURY_DIR"
3233
module load libfabric
3334
module list
34-
mkdir -p ${PDC_BUILD_PATH}/build ${PDC_BUILD_PATH}/install
35-
cd ${PDC_BUILD_PATH}/build
36-
cmake ../.. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=${PDC_BUILD_PATH}/install -DPDC_ENABLE_MPI=ON -DMERCURY_DIR=$MERCURY_DIR -DCMAKE_C_COMPILER=cc -DMPI_RUN_CMD="srun -A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64"
35+
mkdir -p ${PDC_BUILD_PATH} ${PDC_INSTALL_PATH}
36+
cd ${PDC_BUILD_PATH}
37+
cmake ../.. -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=OFF -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=${PDC_INSTALL_PATH} -DPDC_ENABLE_MPI=ON -DMERCURY_DIR=$MERCURY_DIR -DCMAKE_C_COMPILER=cc -DMPI_RUN_CMD="srun -A ${{ secrets.NERSC_PERLMUTTER_PROJECT }} --qos=debug --constraint=cpu --tasks-per-node=64"
3738
make -j
3839
- uses: actions/[email protected]
3940
if: success()
4041
with:
4142
name: "${{ github.job }}"
4243
path: |
43-
${{ github.workspace }}/${{ github.run_id }}/build
44-
${{ github.workspace }}/${{ github.run_id }}/install
44+
${{ github.workspace }}/${{ github.run_id }}
4545
4646
parallel-pdc:
4747
needs:
@@ -62,7 +62,7 @@ jobs:
6262
${{ github.workspace }}/${{ github.run_id }}
6363
- run: |
6464
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
65-
cd ${PDC_BUILD_PATH}/install
65+
cd ${PDC_INSTALL_PATH}
6666
ctest -L parallel_pdc
6767
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
6868
@@ -86,7 +86,7 @@ jobs:
8686
${{ github.workspace }}/${{ github.run_id }}
8787
- run: |
8888
export LD_LIBRARY_PATH="$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
89-
cd ${PDC_BUILD_PATH}/build
89+
cd ${PDC_INSTALL_PATH}
9090
ctest -L parallel_obj
9191
rm -rf ${PDC_TMPDIR} ${PDC_DATA_LOC}
9292

0 commit comments

Comments
 (0)