@@ -131,13 +131,17 @@ jobs:
131
131
132
132
- name : Pack dependencies
133
133
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
135
138
136
139
- uses : actions/upload-artifact@v4
137
140
with :
138
141
name : dependencies-${{ matrix.os }}-${{ matrix.distribution }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
139
142
path : ${{github.workspace}}/dependencies.tar
140
143
retention-days : 5
144
+ if-no-files-found : error
141
145
142
146
test :
143
147
needs :
@@ -167,6 +171,7 @@ jobs:
167
171
name : dependencies-${{ matrix.os }}-${{matrix.distribution}}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
168
172
169
173
- name : Unpack dependencies
174
+ working-directory : ${{github.workspace}}
170
175
run : tar xfv dependencies.tar
171
176
172
177
- name : Install Dependencies on Ubunutu
@@ -192,9 +197,10 @@ jobs:
192
197
- name : Build tests
193
198
# Build your program with the given configuration
194
199
run : |
200
+ export CMAKE_PREFIX_PATH=${{github.workspace}}/local:$CMAKE_PREFIX_PATH
195
201
mkdir -p ${{github.workspace}}/build
196
202
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
198
204
make -j$(nproc --ignore 1) install
199
205
200
206
- name : Test
@@ -225,6 +231,7 @@ jobs:
225
231
name : dependencies-${{ matrix.os }}--${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
226
232
227
233
- name : Unpack dependencies
234
+ working-directory : ${{github.workspace}}
228
235
run : tar xfv dependencies.tar
229
236
230
237
- name : Install Dependencies on Ubunutu
0 commit comments