Skip to content

Commit

Permalink
try to set the path for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
enigne committed Jul 19, 2024
1 parent ad75a7b commit 6ed91f0
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
env:
cache-name: cache-triangle-m1qn3-petsc
with:
path: $ISSM_DIR/externalpackages/
path: ${{ ISSM_DIR }}/externalpackages/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Install External packages
Expand Down Expand Up @@ -72,14 +72,23 @@ jobs:
- name: Compile ISSM
run: make -j16 install

- name: Get run-matlab-command
run: |
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
chmod +x /usr/local/bin/run-matlab-command
- name: Upload ISSM artifact
uses: actions/upload-artifact@v4
with:
name: ISSM-${{ runner.os }}
path: ${{ ISSM_DIR }}
compression-level: 1

test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download ISSM artifact
uses: actions/download-artifact@v4
with:
name: ISSM-${{ runner.os }}
path: ~/

- name: Prepare MATLAB script
run: |
echo "Modifying generic.m to avoid \"There are not enough slots available\""
Expand All @@ -98,6 +107,12 @@ jobs:
quit(0);
EOF
cat ${ISSM_DIR}/matlab_ci.m
- name: Get run-matlab-command
run: |
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
chmod +x /usr/local/bin/run-matlab-command
- name: Run MATLAB Command
run: |
source $ISSM_DIR/etc/environment.sh
Expand Down

0 comments on commit 6ed91f0

Please sign in to comment.