make artifact upload runner conditional
CI / Stable checks (push) Successful in 32s
CI / Rust 1.85 (push) Successful in 24s
CI / Miri (push) Successful in 48s
CI / Coverage (push) Successful in 38s

This commit is contained in:
2026-07-31 14:27:09 +02:00
parent 364acbf99b
commit c3c936c639
+10 -1
View File
@@ -89,8 +89,17 @@ jobs:
--branch \
--html \
--output-dir target/coverage-report
- name: Upload HTML coverage report
- name: Upload HTML coverage report on GitHub
if: github.server_url == 'https://github.com'
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: target/coverage-report
if-no-files-found: error
retention-days: 14
- name: Upload HTML coverage report on Gitea
# Gitea does not support the artifact service used by v4 and later.
if: github.server_url != 'https://github.com'
uses: actions/upload-artifact@v3
with:
name: coverage-report