From 7f9fd7ef062a02804fb840d0783fff4e9854907e Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Sun, 22 Dec 2024 11:29:41 +0100 Subject: [PATCH] Add retention days for artifact uploads in CI workflows --- .github/workflows/build.yml | 4 ++++ .github/workflows/linux-release-build.yml | 3 +++ .github/workflows/macos-release-build.yml | 3 +++ .github/workflows/windows-profile-build.yml | 1 + .github/workflows/windows-release-build.yml | 6 ++++++ 5 files changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c98542adb..48865e5a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -258,6 +258,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen.source.tar.gz path: ./zen.source.tar.gz @@ -383,12 +384,14 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage path: ./dist/zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage - name: Upload artifact (ZSync) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage.zsync path: ./dist/zen-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.AppImage.zsync @@ -652,6 +655,7 @@ jobs: - name: Upload Flatpak manifest uses: actions/upload-artifact@v4 with: + retention-days: 5 name: io.github.zen_browser.zen.yml path: ./io.github.zen_browser.zen.yml diff --git a/.github/workflows/linux-release-build.yml b/.github/workflows/linux-release-build.yml index 547258d2a..3485ddeca 100644 --- a/.github/workflows/linux-release-build.yml +++ b/.github/workflows/linux-release-build.yml @@ -153,17 +153,20 @@ jobs: - name: Upload build artifact (binary) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 path: ./zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 - name: Upload build artifact (.mar) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar path: ./linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - name: Upload build artifact (update manifests) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: linux_update_manifest_${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }} path: ./dist/update diff --git a/.github/workflows/macos-release-build.yml b/.github/workflows/macos-release-build.yml index 2c867d0f0..b4503d765 100644 --- a/.github/workflows/macos-release-build.yml +++ b/.github/workflows/macos-release-build.yml @@ -176,17 +176,20 @@ jobs: - name: Upload build artifact uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen.macos-${{ matrix.arch }}.dmg path: ./zen.macos-${{ matrix.arch }}.dmg - name: Upload build artifact (.mar) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: macos-${{ matrix.arch }}.mar path: ./macos-${{ matrix.arch }}.mar - name: Upload build artifact (update manifests) uses: actions/upload-artifact@v4 with: + retention-days: 5 name: macos_update_manifest_${{ matrix.arch }} path: ./dist/update diff --git a/.github/workflows/windows-profile-build.yml b/.github/workflows/windows-profile-build.yml index 9c3578131..a83b8931d 100644 --- a/.github/workflows/windows-profile-build.yml +++ b/.github/workflows/windows-profile-build.yml @@ -108,6 +108,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: + retention-days: 1 path: | merged.profdata en-US.log diff --git a/.github/workflows/windows-release-build.yml b/.github/workflows/windows-release-build.yml index 794f5631c..041958973 100644 --- a/.github/workflows/windows-release-build.yml +++ b/.github/workflows/windows-release-build.yml @@ -198,6 +198,7 @@ jobs: uses: actions/upload-artifact@v4 if: ${{ inputs.generate-gpo }} with: + retention-days: 5 name: ${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}-${{ inputs.profile-data-path-archive }} path: ./zen.win64-pgo-stage-1.zip @@ -217,6 +218,7 @@ jobs: if: ${{ !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: + retention-days: 5 name: windows-x64-obj-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }} path: engine/obj-${{ matrix.arch == 'aarch64' && 'aarch64' || 'x86_64' }}-pc-windows-msvc/ @@ -224,6 +226,7 @@ jobs: if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen.win-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}.zip path: ./zen.win-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }}.zip @@ -231,6 +234,7 @@ jobs: if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: + retention-days: 5 name: zen.installer${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.exe path: ./zen.installer${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.exe @@ -238,6 +242,7 @@ jobs: if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: + retention-days: 5 name: windows${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.mar path: ./windows${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-arm64' || '' }}.mar @@ -245,5 +250,6 @@ jobs: if: ${{ inputs.release-branch == 'twilight' && !inputs.generate-gpo }} uses: actions/upload-artifact@v4 with: + retention-days: 5 name: windows_update_manifest_${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'arm64' }} path: ./dist/update