From b4a574f6ba808998126b71c6084c214df8969296 Mon Sep 17 00:00:00 2001 From: Eemeli Date: Fri, 14 Jul 2023 18:48:10 +0300 Subject: [PATCH] replace abandoned actions-rs/toolchain with dtolnay/rust-toolchain and remove cache --- .github/workflows/rust.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da1803c23..8dc64087d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,12 +12,7 @@ env: jobs: unit-tests: - strategy: - matrix: - rust-version: [nightly-2023-05-15] - os: [ubuntu-latest] - - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -29,29 +24,12 @@ jobs: packages: jq xorriso qemu-system-x86 ripgrep version: 1.0 - - name: Cache toolchain - id: cache-rustup-restore - uses: actions/cache/restore@v3 - with: - path: ~/.rustup - key: rust-toolchain-${{ matrix.rust-version }}-${{ matrix.os }} - - - name: Install ${{ matrix.rust-version }} + - name: Install latest rust nightly if: steps.cache-rustup-restore.outputs.cache-hit != 'true' - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust-version }} - override: true - target: x86_64-unknown-none - components: rustfmt, clippy - - - name: Cache toolchain - id: cache-rustup-save - uses: actions/cache/save@v3 + uses: dtolnay/rust-toolchain@nightly with: - path: ~/.rustup - key: ${{ steps.cache-rustup-restore.outputs.cache-primary-key }} + targets: "x86_64-unknown-none" + components: "rustfmt, clippy" - name: Cache Build uses: Swatinem/rust-cache@v2.5.0