From eeffc7b89edc48b090a18fc56db19e7259dfee08 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Fri, 15 Sep 2023 20:29:45 +0200 Subject: [PATCH] Install `cargo-apk` with the stable toolchain --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00ee61e1b54..2dab89f10e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,12 +64,6 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }}${{ matrix.platform.host }} - targets: ${{ matrix.platform.target }} - components: clippy - - name: Restore cache of cargo folder # We use `restore` and later `save`, so that we can create the key after # the cache has been downloaded. @@ -100,12 +94,23 @@ jobs: with: path: ~/.cargo/bin/cargo-apk # Change this key if we update the required cargo-apk version - key: cargo-apk-${{ matrix.toolchain }}-${{ matrix.platform.name }}-v0-9-7 + key: cargo-apk-v0-9-7 + + - uses: dtolnay/rust-toolchain@master + if: contains(matrix.platform.target, 'android') && (steps.cargo-apk-cache.outputs.cache-hit != 'true') + with: + toolchain: stable - name: Install cargo-apk if: contains(matrix.platform.target, 'android') && (steps.cargo-apk-cache.outputs.cache-hit != 'true') run: cargo install cargo-apk --version=^0.9.7 --locked + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.toolchain }}${{ matrix.platform.host }} + targets: ${{ matrix.platform.target }} + components: clippy + - name: Check documentation run: cargo doc --no-deps $OPTIONS --document-private-items