From 293293137121c651fa38e13952f6948267979bcc Mon Sep 17 00:00:00 2001 From: Webster Sheets Date: Wed, 31 Jan 2024 02:34:48 -0500 Subject: [PATCH] Update CI actions/upload-artifact to v4 - V4 provides potentially significantly faster artifact uploads and customizable compression levels for the artifact zip file. --- .github/actions/upload-linux/action.yml | 4 +++- .github/workflows/build-ci.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/upload-linux/action.yml b/.github/actions/upload-linux/action.yml index 5beff549dbd..3fc6ddf7c4e 100644 --- a/.github/actions/upload-linux/action.yml +++ b/.github/actions/upload-linux/action.yml @@ -31,10 +31,12 @@ runs: tar -czf "pioneer-$BUILD_SLUG-$(date +%Y%m%d).tar.gz" "pioneer-$BUILD_SLUG" - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact_name }} path: ${{ format('out/install/pioneer-{0}-*.tar.gz', inputs.build_slug) }} + retention-days: 14 + compression-level: 7 - name: Build Release shell: bash diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 3d594b054b1..d673be1eea4 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -12,6 +12,8 @@ on: - 'src/**.cpp' - 'src/**.h' - '**/CMakeLists.txt' + - '.github/workflows/build-ci.yml' + - '.github/actions/*/action.yml' release: types: [published]