Skip to content

Commit 7d349e3

Browse files
authored
fix
1 parent dd21c82 commit 7d349e3

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- uses: actions/checkout@v4
3030
with:
3131
submodules: true
32+
- name: Set binary paths
33+
id: set_binaries
34+
run: |
35+
echo "ACC_BINARY=build/bin/ACC" >> $GITHUB_OUTPUT
3236
- name: Setup ccache
3337
uses: hendrikmuhs/ccache-action@v1.2
3438
with:
@@ -56,7 +60,7 @@ jobs:
5660
with:
5761
name: mnist-${{ matrix.build_type }}${{ matrix.stats && '-stats' || '' }}
5862
path: |
59-
build/bin/ACC
63+
${{ steps.set_binaries.outputs.ACC_BINARY }}
6064
build/bin/opencv_libs/*
6165
build/setenv.sh
6266
- name: Test
@@ -219,6 +223,10 @@ jobs:
219223
- uses: actions/checkout@v4
220224
with:
221225
fetch-depth: 0
226+
- name: Set binary path
227+
id: set_eval_binary
228+
run: |
229+
echo "EVAL_BINARY=build/bin/ACC" >> $GITHUB_OUTPUT
222230
- name: Install system dependencies
223231
run: |
224232
sudo apt-get update
@@ -262,11 +270,11 @@ jobs:
262270
path: build/
263271
- name: Prepare environment
264272
run: |
265-
chmod +x build/bin/ACC
273+
chmod +x "${{ steps.set_eval_binary.outputs.EVAL_BINARY }}"
266274
export LD_LIBRARY_PATH=$PWD/build/bin/opencv_libs:/usr/lib/x86_64-linux-gnu
267275
- name: Run evaluation
268276
run: |
269-
build/bin/ACC > accuracy.txt
277+
"${{ steps.set_eval_binary.outputs.EVAL_BINARY }}" > accuracy.txt
270278
- name: Update README (master only)
271279
if: github.ref == 'refs/heads/master'
272280
run: |

0 commit comments

Comments
 (0)