From 5231621e10af8728fa9f60154bf2f71bfcc98b37 Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Fri, 31 May 2024 19:54:53 -0700 Subject: [PATCH] Update GitHub Actions to use non-deprecated versions --- .github/workflows/ci.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f4b8ea..97c36df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: name: Build for Linux runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - if: ${{ github.event_name == 'push' }} uses: docker/login-action@v3 with: @@ -30,7 +30,7 @@ jobs: # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/docuum-x86_64-unknown-linux-gnu artifacts/docuum - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: x86_64-unknown-linux-gnu path: artifacts/docuum @@ -41,7 +41,7 @@ jobs: # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/docuum-x86_64-unknown-linux-musl artifacts/docuum - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: x86_64-unknown-linux-musl path: artifacts/docuum @@ -52,7 +52,7 @@ jobs: # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/docuum-aarch64-unknown-linux-gnu artifacts/docuum - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: aarch64-unknown-linux-gnu path: artifacts/docuum @@ -63,7 +63,7 @@ jobs: # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/docuum-aarch64-unknown-linux-musl artifacts/docuum - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: aarch64-unknown-linux-musl path: artifacts/docuum @@ -79,7 +79,7 @@ jobs: # The unit tests do not expect the files in `test_data` to have carriage returns added. git config --global core.autocrlf false git config --global core.eol lf - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | # Make Bash log commands and not silently ignore errors. set -euxo pipefail @@ -110,12 +110,12 @@ jobs: --release \ --target aarch64-pc-windows-msvc NO_COLOR=true cargo test --locked # [ref:colorless_tests] - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: x86_64-pc-windows-msvc path: target/x86_64-pc-windows-msvc/release/docuum.exe if-no-files-found: error - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: aarch64-pc-windows-msvc path: target/aarch64-pc-windows-msvc/release/docuum.exe @@ -124,7 +124,7 @@ jobs: name: Build for macOS runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | # Make Bash log commands and not silently ignore errors. set -euxo pipefail @@ -148,12 +148,12 @@ jobs: MACOSX_DEPLOYMENT_TARGET=$(xcrun --show-sdk-version) \ cargo build --locked --release --target aarch64-apple-darwin NO_COLOR=true cargo test --locked # [ref:colorless_tests] - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: x86_64-apple-darwin path: target/x86_64-apple-darwin/release/docuum if-no-files-found: error - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: aarch64-apple-darwin path: target/aarch64-apple-darwin/release/docuum @@ -162,7 +162,7 @@ jobs: name: Install on macOS runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | # Make Bash log commands and not silently ignore errors. set -euxo pipefail @@ -176,7 +176,7 @@ jobs: name: Install on Ubuntu runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | # Make Bash log commands and not silently ignore errors. set -euxo pipefail @@ -192,14 +192,14 @@ jobs: runs-on: ubuntu-latest needs: [ci-linux, ci-macos, ci-windows, install-macos, install-ubuntu] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 # For building multi-platform images - uses: docker/setup-buildx-action@v3 # For building multi-platform images - uses: docker/login-action@v3 with: username: stephanmisc password: ${{ secrets.DOCKER_PASSWORD }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: artifacts/ - env: