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:
parent
b686b68ae6
commit
3cb798c518
20
.github/workflows/clippy-fmt.yml
vendored
20
.github/workflows/clippy-fmt.yml
vendored
@ -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: |
|
||||
|
10
.github/workflows/linux.yml
vendored
10
.github/workflows/linux.yml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user