]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
[CI] Fix creating list of artifacts for CodeCov.
authorMika Lindqvist <postmaster@raasu.org>
Mon, 19 Feb 2024 21:34:03 +0000 (23:34 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 3 Mar 2024 22:23:38 +0000 (23:23 +0100)
.github/workflows/cmake.yml
.github/workflows/pigz.yml

index 870e88770d4be1da35de71f3a18b2b7f8315cffa..e5bb33ba37db8b97fdb301714f93f89e33a200fa 100644 (file)
@@ -673,7 +673,7 @@ jobs:
       shell: bash
       run: |
         python3 -u -m pip install --user gcovr==5.0
-        python3 -m gcovr -j 3 --verbose \
+        python3 -m gcovr ${{ matrix.build-dir || '' }} -j 3 --verbose \
           --exclude-unreachable-branches \
           --gcov-executable "${{ matrix.gcov-exec || 'gcov' }}" \
           --root ${{ matrix.build-src-dir || '.' }} \
@@ -717,7 +717,7 @@ jobs:
     - name: Display all coverage artifacts
       run: |
         ls -R *.xml
-        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ','`" >> $GITHUB_ENV
+        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g`" >> $GITHUB_ENV
 
     - name: Upload reports
       uses: codecov/codecov-action@v4
index 139f528182789e9d4185cbc66f94109f24b34d31..d7699d4e19ef957f2c290e837fe270373ae8d805 100644 (file)
@@ -150,7 +150,7 @@ jobs:
     - name: Display all coverage artifacts
       run: |
         ls -R *.xml
-        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ','`" >> $GITHUB_ENV
+        echo "CODECOV_REPORTS=`ls -p *.xml | grep -v / | tr '\n' ',' | sed 's/,$//g`" >> $GITHUB_ENV
 
     - name: Upload reports
       uses: codecov/codecov-action@v4