Skip to content

Commit

Permalink
Merge pull request #359 from astro-informatics/tk/tar-dependencies
Browse files Browse the repository at this point in the history
Preserve symlinks in CI
  • Loading branch information
20DM authored Oct 9, 2024
2 parents 8379477 + 5eea44d commit 83ae2d9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,15 @@ jobs:
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=OFF -Dexamples=OFF
make -j$(nproc --ignore 1) install
- name: Pack dependencies
run: |
cd ${{github.workspace}}
tar cfv dependencies.tar local
- uses: actions/upload-artifact@v4
with:
name: dependencies-${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
path: ${{github.workspace}}/local
path: ${{github.workspace}}/dependencies.tar
retention-days: 5

test:
Expand Down Expand Up @@ -188,7 +193,9 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: dependencies-${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
path: ${{github.workspace}}/local

- name: Unpack dependencies
run: tar xfv dependencies.tar

- name: Install Dependencies on Ubunutu
if: ${{ contains(matrix.os, 'ubuntu') }}
Expand Down Expand Up @@ -247,7 +254,9 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: dependencies-${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
path: ${{github.workspace}}/local

- name: Unpack dependencies
run: tar xfv dependencies.tar

- name: Install Dependencies on Ubunutu
if: ${{ contains(matrix.os, 'ubuntu') }}
Expand Down

0 comments on commit 83ae2d9

Please sign in to comment.