mirror of
https://github.com/actix/examples
synced 2025-02-17 15:23:31 +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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- name: Install Rust
|
||||||
with: { components: rustfmt }
|
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
components: rustfmt
|
||||||
|
|
||||||
- name: rustfmt
|
- name: rustfmt
|
||||||
run: cargo fmt --all -- --check
|
uses: actions-rust-lang/rustfmt@v1
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: clippy check
|
name: clippy check
|
||||||
@ -25,16 +28,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI: 1
|
CI: 1
|
||||||
CARGO_INCREMENTAL: false
|
CARGO_INCREMENTAL: false
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- name: Install Rust
|
||||||
with: { components: clippy }
|
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
|
||||||
|
with:
|
||||||
- name: Cache Dependencies
|
toolchain: stable
|
||||||
uses: Swatinem/rust-cache@v2.2.1
|
components: clippy
|
||||||
|
|
||||||
# - name: Create test DBs
|
# - name: Create test DBs
|
||||||
# run: |
|
# run: |
|
||||||
|
10
.github/workflows/linux.yml
vendored
10
.github/workflows/linux.yml
vendored
@ -19,18 +19,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI: 1
|
CI: 1
|
||||||
CARGO_INCREMENTAL: false
|
CARGO_INCREMENTAL: false
|
||||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: |
|
uses: actions-rust-lang/setup-rust-toolchain@v1.4.3
|
||||||
rustup install ${{ matrix.version }} --no-self-update --profile minimal --force
|
with:
|
||||||
rustup override set ${{ matrix.version }}
|
toolchain: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2.2.1
|
|
||||||
|
|
||||||
- name: Install DB CLI tools
|
- name: Install DB CLI tools
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user