1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

use actions-rust-lang/setup-rust-toolchain in CI

This commit is contained in:
Rob Ede 2023-03-14 03:32:46 +00:00
parent b686b68ae6
commit 3cb798c518
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 14 additions and 16 deletions

View File

@ -12,11 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with: { components: rustfmt }
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
with:
toolchain: stable
components: rustfmt
- name: rustfmt
run: cargo fmt --all -- --check
uses: actions-rust-lang/rustfmt@v1
clippy:
name: clippy check
@ -25,16 +28,15 @@ jobs:
env:
CI: 1
CARGO_INCREMENTAL: false
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with: { components: clippy }
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.1
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
with:
toolchain: stable
components: clippy
# - name: Create test DBs
# run: |

View File

@ -19,18 +19,14 @@ jobs:
env:
CI: 1
CARGO_INCREMENTAL: false
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: |
rustup install ${{ matrix.version }} --no-self-update --profile minimal --force
rustup override set ${{ matrix.version }}
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.1
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
with:
toolchain: ${{ matrix.version }}
- name: Install DB CLI tools
run: |