Skip to content

Commit bb195ba

Browse files
committed
Fix broken tar path
1 parent 457a823 commit bb195ba

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,17 @@ jobs:
131131
132132
- name: Pack dependencies
133133
run: |
134-
tar cfv dependencies.tar ${{github.workspace}}/local
134+
cd ${{github.workspace}}
135+
# Work around a bug with paths when running in containers
136+
# https://github.com/actions/runner/issues/2058
137+
tar $GITHUB_WORKSPACE/cfv dependencies.tar ./local
135138
136139
- uses: actions/upload-artifact@v4
137140
with:
138141
name: dependencies-${{ matrix.os }}-${{ matrix.distribution }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
139142
path: ${{github.workspace}}/dependencies.tar
140143
retention-days: 5
144+
if-no-files-found: error
141145

142146
test:
143147
needs:
@@ -167,6 +171,7 @@ jobs:
167171
name: dependencies-${{ matrix.os }}-${{matrix.distribution}}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
168172

169173
- name: Unpack dependencies
174+
working-directory: ${{github.workspace}}
170175
run: tar xfv dependencies.tar
171176

172177
- name: Install Dependencies on Ubunutu
@@ -192,9 +197,10 @@ jobs:
192197
- name: Build tests
193198
# Build your program with the given configuration
194199
run: |
200+
export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
195201
mkdir -p ${{github.workspace}}/build
196202
cd ${{github.workspace}}/build
197-
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
203+
cmake .. --fresh -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -Donnxrt=ON -Ddocasa=OFF -Ddompi=${{matrix.mpi}} -Dopenmp=${{matrix.omp}} -Dtests=ON
198204
make -j$(nproc --ignore 1) install
199205
200206
- name: Test
@@ -225,6 +231,7 @@ jobs:
225231
name: dependencies-${{ matrix.os }}--${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
226232

227233
- name: Unpack dependencies
234+
working-directory: ${{github.workspace}}
228235
run: tar xfv dependencies.tar
229236

230237
- name: Install Dependencies on Ubunutu

0 commit comments

Comments
 (0)