From 628f940d5220193aa4006c87e5834171eeb5afc1 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Sun, 29 Sep 2024 16:28:59 +0300 Subject: [PATCH] ci: Bump versions of action jobs --- .github/workflows/CI.yaml | 40 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 3d2f4ee..65bba6d 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -24,21 +24,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - override: true components: rustfmt - name: cargo ${{ matrix.cmd }} uses: actions-rs/cargo@v1 - with: - command: ${{ matrix.cmd }} - args: ${{ matrix.args }} + run: cargo ${{ matrix.cmd }} ${{ matrix.args }} lint_proto: @@ -46,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download Uber's prototool run: | @@ -74,27 +70,20 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Rust (${{ matrix.rust }}) - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} - override: true # Catch any breaking changes in the dependencies early, by always updating # them before running the tests. - name: Update dependencies - uses: actions-rs/cargo@v1 - with: - command: update + run: cargo update - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: "-- --nocapture" # Allow printing the output of tests + run: cargo test -- --nocapture # Allow printing the output of tests build: name: Build on ${{ matrix.os }} @@ -117,16 +106,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: "--release" + run: cargo build --release - name: Upload binaries - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: ${{ env.BINARY_NAME }}_${{ matrix.arch }}${{ matrix.extension}} path: "target/release/${{ env.BINARY_NAME }}${{ matrix.extension }}" @@ -167,7 +153,7 @@ jobs: EOF - name: Upload release context - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: release_context path: release_context @@ -189,7 +175,7 @@ jobs: steps: - name: Download release context - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: release_context path: ctx