Skip to content

Commit

Permalink
Install cargo-apk with the stable toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Sep 15, 2023
1 parent 0caba93 commit eeffc7b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit eeffc7b

Please sign in to comment.