Skip to content

Commit

Permalink
Fix broken tar path
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoskela committed Dec 16, 2024
1 parent 457a823 commit bb195ba
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,17 @@ jobs:
- name: Pack dependencies
run: |
tar cfv dependencies.tar ${{github.workspace}}/local
cd ${{github.workspace}}
# Work around a bug with paths when running in containers
# https://github.com/actions/runner/issues/2058
tar $GITHUB_WORKSPACE/cfv dependencies.tar ./local
- uses: actions/upload-artifact@v4
with:
name: dependencies-${{ matrix.os }}-${{ matrix.distribution }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
path: ${{github.workspace}}/dependencies.tar
retention-days: 5
if-no-files-found: error

test:
needs:
Expand Down Expand Up @@ -167,6 +171,7 @@ jobs:
name: dependencies-${{ matrix.os }}-${{matrix.distribution}}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}

- name: Unpack dependencies
working-directory: ${{github.workspace}}
run: tar xfv dependencies.tar

- name: Install Dependencies on Ubunutu
Expand All @@ -192,9 +197,10 @@ jobs:
- name: Build tests
# Build your program with the given configuration
run: |
export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
mkdir -p ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddocasa=OFF -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=ON --debug-find -DCMAKE_PREFIX_PATH=../local/share/cmake/sopt
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddocasa=OFF -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=ON
make -j$(nproc --ignore 1) install
- name: Test
Expand Down Expand Up @@ -225,6 +231,7 @@ jobs:
name: dependencies-${{ matrix.os }}--${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}

- name: Unpack dependencies
working-directory: ${{github.workspace}}
run: tar xfv dependencies.tar

- name: Install Dependencies on Ubunutu
Expand Down

0 comments on commit bb195ba

Please sign in to comment.