diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 8948da366..c6326fb61 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -234,13 +234,14 @@ jobs: name: qbz-linux-${{ inputs.arch }} path: qbz if-no-files-found: error + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Upload unstripped binary (symbolication) uses: actions/upload-artifact@v7 with: name: qbz-linux-${{ inputs.arch }}-unstripped path: qbz-unstripped - retention-days: 90 + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} # tar keeps the symlinks (AppRun, .DirIcon) and the exec bits that # upload-artifact's zip would drop. @@ -251,3 +252,4 @@ jobs: name: qbz-appdir-${{ inputs.arch }} path: appdir.tar if-no-files-found: error + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} diff --git a/.github/workflows/qt-gate-windows.yml b/.github/workflows/qt-gate-windows.yml index 55f0633b1..b64be5eb6 100644 --- a/.github/workflows/qt-gate-windows.yml +++ b/.github/workflows/qt-gate-windows.yml @@ -209,3 +209,4 @@ jobs: name: smoke-log-windows path: smoke.log if-no-files-found: ignore + retention-days: 7 diff --git a/.github/workflows/release-aur.yml b/.github/workflows/release-aur.yml index 02e52d7c1..309d768a9 100644 --- a/.github/workflows/release-aur.yml +++ b/.github/workflows/release-aur.yml @@ -220,6 +220,7 @@ jobs: uses: actions/upload-artifact@v7 with: name: aur-qbz-bin-dry-run + retention-days: 7 path: | /tmp/aur-qbz-bin/PKGBUILD /tmp/aur-qbz-bin/.SRCINFO diff --git a/.github/workflows/release-flatpak.yml b/.github/workflows/release-flatpak.yml index cb95a54f0..a5b90cd07 100644 --- a/.github/workflows/release-flatpak.yml +++ b/.github/workflows/release-flatpak.yml @@ -48,7 +48,10 @@ jobs: - run: sudo apt-get update && sudo apt-get install -y libasound2-dev libjack-jackd2-dev libdbus-1-dev libssl-dev - run: cargo build --release --manifest-path crates/Cargo.toml -p qbzd - uses: actions/upload-artifact@v7 - with: { name: qbzd-linux-x86_64-flatpak, path: crates/target/release/qbzd } + with: + name: qbzd-linux-x86_64-flatpak + path: crates/target/release/qbzd + retention-days: 7 build-flatpak: needs: [build, build-qbzd] @@ -191,6 +194,7 @@ jobs: with: name: qbz-flatpak path: dist/${{ steps.build_flatpak.outputs.bundle_name }} + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Publish GitHub Release Asset if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/release-gentoo.yml b/.github/workflows/release-gentoo.yml index aa27481cb..3f69a0d8b 100644 --- a/.github/workflows/release-gentoo.yml +++ b/.github/workflows/release-gentoo.yml @@ -209,6 +209,7 @@ jobs: uses: actions/upload-artifact@v7 with: name: gentoo-overlay-dry-run + retention-days: 7 path: | /tmp/qbz-overlay/media-sound/qbz-bin/*.ebuild /tmp/qbz-overlay/media-sound/qbz-bin/Manifest diff --git a/.github/workflows/release-linux-aarch64.yml b/.github/workflows/release-linux-aarch64.yml index 6d920443d..65ba4abcf 100644 --- a/.github/workflows/release-linux-aarch64.yml +++ b/.github/workflows/release-linux-aarch64.yml @@ -156,7 +156,10 @@ jobs: highest=$(printf '%s\n' "$floor" "GLIBC_2.35" | sort -V | tail -1) [ "$highest" = "GLIBC_2.35" ] || { echo "::error::floor $floor exceeds 2.35"; exit 1; } - uses: actions/upload-artifact@v7 - with: { name: qbzd-linux-aarch64, path: crates/target/release/qbzd } + with: + name: qbzd-linux-aarch64 + path: crates/target/release/qbzd + retention-days: 7 package: needs: [version, build, build-qbzd] @@ -292,6 +295,7 @@ jobs: with: name: qbz-linux-packages-${{ env.ARCH }} path: dist/* + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Publish GitHub Release Assets if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 40d9bfe65..3a07777d9 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -156,7 +156,10 @@ jobs: highest=$(printf '%s\n' "$floor" "GLIBC_2.35" | sort -V | tail -1) [ "$highest" = "GLIBC_2.35" ] || { echo "::error::floor $floor exceeds 2.35"; exit 1; } - uses: actions/upload-artifact@v7 - with: { name: qbzd-linux-x86_64, path: crates/target/release/qbzd } + with: + name: qbzd-linux-x86_64 + path: crates/target/release/qbzd + retention-days: 7 package: needs: [version, build, build-qbzd] @@ -292,6 +295,7 @@ jobs: with: name: qbz-linux-packages-${{ env.ARCH }} path: dist/* + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Publish GitHub Release Assets if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index 64f7efc5f..efead6c97 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -291,6 +291,7 @@ jobs: uses: actions/upload-artifact@v7 with: name: ${{ matrix.artifact }} + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} path: | dist/*.dmg dist/*.app.tar.gz diff --git a/.github/workflows/release-snap.yml b/.github/workflows/release-snap.yml index 9624e2f31..9c48d3690 100644 --- a/.github/workflows/release-snap.yml +++ b/.github/workflows/release-snap.yml @@ -145,6 +145,7 @@ jobs: name: qbz-snap-amd64 path: ${{ steps.build.outputs.snap }} if-no-files-found: error + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Publish to the Snap Store (skipped when no store credentials) if: ${{ env.SNAPCRAFT_STORE_CREDENTIALS != '' && (startsWith(github.ref, 'refs/tags/') || inputs.publish) }} @@ -196,6 +197,7 @@ jobs: name: qbz-snap-arm64 path: ${{ steps.build.outputs.snap }} if-no-files-found: error + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} - name: Publish to the Snap Store (skipped when no store credentials) if: ${{ env.SNAPCRAFT_STORE_CREDENTIALS != '' && (startsWith(github.ref, 'refs/tags/') || inputs.publish) }} diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index 7142ff9c9..f8b285475 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -117,6 +117,7 @@ jobs: name: qbz-msi-authoring path: dist/QBZ_authoring_x64.msi if-no-files-found: error + retention-days: 7 build-windows: if: ${{ !inputs.authoring_only }} @@ -446,6 +447,7 @@ jobs: uses: actions/upload-artifact@v7 with: name: qbz-windows-x86_64 + retention-days: ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }} path: | dist/*.msi dist/*.zip