Skip to content

Commit

Permalink
ci: fix order of cache action
Browse files Browse the repository at this point in the history
Obviously, the cache action needs to run _before_ the action it caches
:facepalm:

Signed-off-by: Kim Altintop <[email protected]>
  • Loading branch information
kim committed Oct 25, 2021
1 parent 00f8fb6 commit 7e8828d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- run: ./ci/clippy
shell: bash
Expand All @@ -28,6 +28,13 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@master
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -36,13 +43,6 @@ jobs:
with:
crate: cargo-deny
version: latest
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
Expand All @@ -54,6 +54,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -62,13 +69,6 @@ jobs:
with:
crate: cargo-deny
version: latest
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
Expand All @@ -90,17 +90,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
- uses: actions/cache@v2
with:
path: |
~/.rustup/settings.toml
~/.rustup/toolchains
~/.rustup/update-hashes
key: toolchain-${{ hashFiles('rust-toolchain') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- run: ./ci/build-test
shell: bash

0 comments on commit 7e8828d

Please sign in to comment.