Skip to content

Commit 4eca093

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/cov.yml

Lines changed: 5 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,13 @@ 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`
108110
109-
echo "cov=$covFile" >> $GITHUB_OUTPUT
111+
echo "path=${{github.workspace}}/build/cov.tar.gz" >> $GITHUB_OUTPUT
110112
111113
- name: Upload coverage
112114
uses: actions/upload-artifact@v3
113115
with:
114116
name: coverage-report
115-
path: ${{ steps.cov_gen.outputs.cov }}
117+
path: ${{ steps.cov_gen.outputs.cov.path }}
116118
if-no-files-found: error

0 commit comments

Comments
 (0)