Skip to content

Commit 866a59f

Browse files
committed
test: Try to fix upload artifact on CI
1 parent dadffa5 commit 866a59f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/cov.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
# cross-platform coverage.
3434
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
3535
runs-on: ubuntu-latest
36+
outputs:
37+
cov: ${{ steps.cov_gen.outputs.path }}
3638
strategy:
3739
matrix:
3840
include:
@@ -104,13 +106,15 @@ jobs:
104106
genhtml main_coverage.info --ignore-errors source --output-directory out -p ${{github.workspace}}
105107
tar -czf cov.tar.gz out
106108
ls -lh cov.tar.gz
107-
export covFile=`realpath cov.tar.gz`
109+
#export covFile=`realpath cov.tar.gz`
110+
export covFile = ${{github.workspace}}/build/cov.tar.gz
108111
109-
echo "cov=$covFile" >> $GITHUB_OUTPUT
112+
113+
echo "path=$covFile" >> $GITHUB_OUTPUT
110114
111115
- name: Upload coverage
112116
uses: actions/upload-artifact@v3
113117
with:
114118
name: coverage-report
115-
path: ${{ steps.cov_gen.outputs.cov }}
119+
path: ${{ steps.cov_gen.outputs.cov.path }}
116120
if-no-files-found: error

0 commit comments

Comments
 (0)