From 379adcb90981e2d980dcaf173bd89e8b1c61b4ef Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sun, 9 Apr 2023 09:16:42 +0000 Subject: [PATCH] Update release workflow - `ubuntu-18.04` runner has been deprecated and removed by GitHub. We now use `ubuntu-20.04`. - `actions-rs/toolchain` is replaced by `dtolnay/rust-toolchain`. --- .github/workflows/release.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b68a221..c0232f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - windows include: - name: linux - os: ubuntu-18.04 + os: ubuntu-20.04 build_deps: > libpcsclite-dev archive_name: age-plugin-yubikey.tar.gz @@ -49,10 +49,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - uses: dtolnay/rust-toolchain@stable + id: toolchain + - run: rustup override set ${{steps.toolchain.outputs.name}} - name: Add target run: rustup target add ${{ matrix.target }} if: matrix.target != '' @@ -96,7 +95,7 @@ jobs: deb: name: Debian ${{ matrix.name }} - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: matrix: name: [linux] @@ -108,10 +107,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - uses: dtolnay/rust-toolchain@stable + id: toolchain + - run: rustup override set ${{steps.toolchain.outputs.name}} - name: Add target run: rustup target add ${{ matrix.target }} - name: cargo install cargo-deb