ci: run toolchain action before caching

This commit is contained in:
Dmitriy Pleshevskiy 2022-07-21 10:39:35 +03:00
parent 4ce06d74ff
commit 7a2c7462dd
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 7 additions and 7 deletions

View File

@ -22,6 +22,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Cache cargo registry
uses: actions/cache@v1
with:
@ -34,13 +41,6 @@ jobs:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
- name: Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose