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

View file

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