From 4bbac0a067d50750e3cd0dc9ebd16c39f7e48b5c Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 1 Feb 2024 00:46:10 +1100 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"build(deps):=20bump=20actio?= =?UTF-8?q?ns/{up,=20down}load-artifact=20from=203=20to=204=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f5da25cc56cc7fd1b7c13f93ea559d7b60b742bc. --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/release-cli.yml | 8 ++++---- .github/workflows/release-packages.yml | 20 ++++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86ba6d7a8..4639ab3e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -172,7 +172,7 @@ jobs: # Set working directory here, otherwise `cargo-zigbuild` would download # and build quite a few unused dependencies. working-directory: crates/detect-targets - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: detect-targets path: target/${{ env.CARGO_BUILD_TARGET }}/debug/detect-targets @@ -183,7 +183,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: detect-targets - run: chmod +x detect-targets @@ -205,7 +205,7 @@ jobs: - ubuntu-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: detect-targets - run: chmod +x detect-targets @@ -228,7 +228,7 @@ jobs: - fedora runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: detect-targets - run: chmod +x detect-targets @@ -244,7 +244,7 @@ jobs: needs: detect-targets-build runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: detect-targets - run: chmod +x detect-targets diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 92b271c9c..3340b4ca3 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -46,11 +46,11 @@ jobs: env: AGE_KEY_PUBLIC: ${{ vars.AGE_KEY_PUBLIC }} run: .github/scripts/ephemeral-gen.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: minisign.pub path: minisign.pub - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: minisign.key.age path: minisign.key.age @@ -79,7 +79,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: minisign.pub @@ -93,7 +93,7 @@ jobs: run: cargo publish --dry-run -p "$crate" --allow-dirty --no-default-features - if: fromJSON(inputs.info).is-release != 'true' && fromJSON(inputs.info).crate != '' name: Upload crate package as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: crate-package path: target/package/*.crate diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 6cc606581..04403e39a 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -70,7 +70,7 @@ jobs: - run: just toolchain rust-src - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: minisign.pub - run: just package @@ -85,7 +85,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: minisign.key.age - name: Sign package @@ -107,14 +107,14 @@ jobs: prerelease: true - if: "fromJSON(inputs.publish).is-release != 'true' || runner.os == 'macOS'" name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.t }} path: packages/cargo-binstall-* retention-days: 1 - name: Upload timings - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.t }}-cargo-timings path: target/cargo-timings @@ -138,27 +138,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: x86_64h-apple-darwin path: packages/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: x86_64-apple-darwin path: packages/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: aarch64-apple-darwin path: packages/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: minisign.pub - run: ls -shalr packages/ - run: just repackage-lipo - run: ls -shal packages/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: minisign.key.age - env: @@ -180,7 +180,7 @@ jobs: prerelease: true - if: fromJSON(inputs.publish).is-release != 'true' name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: universal-apple-darwin path: packages/cargo-binstall-universal-*