Skip to content

Commit ea94c76

Browse files
committed
feat: support
1 parent 38cc1f5 commit ea94c76

File tree

5 files changed

+24
-66
lines changed

5 files changed

+24
-66
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
4040
${{ runner.os }}-cargo-build
4141
42-
- name: cargo build
43-
uses: actions-rs/cargo@v1
44-
with:
45-
command: build
46-
args: --release --locked
42+
- name: Setup Rust
43+
uses: dtolnay/rust-toolchain@stable
44+
45+
- name: Build
46+
run: cargo build --release

.github/workflows/clippy.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

16-
- uses: actions-rs/toolchain@v1
17-
with:
18-
profile: minimal
19-
toolchain: stable
20-
override: true
21-
components: clippy
16+
- name: Setup Rust
17+
uses: dtolnay/rust-toolchain@stable
2218

23-
- name: Cache .cargo and target
24-
uses: actions/cache@v2
25-
with:
26-
path: |
27-
~/.cargo
28-
./target
29-
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
32-
${{ runner.os }}-cargo-clippy
33-
34-
- name: cargo clippy
35-
uses: actions-rs/cargo@v1
36-
with:
37-
command: clippy
38-
args: -- -D warnings
19+
- name: Run Clippy
20+
run: cargo clippy --all-targets --all-features -- -D warnings

.github/workflows/fmt.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

18-
- uses: actions-rs/toolchain@v1
19-
with:
20-
profile: minimal
21-
toolchain: stable
22-
override: true
23-
components: rustfmt
18+
- name: Setup Rust
19+
uses: dtolnay/rust-toolchain@stable
2420

25-
- name: Cache .cargo and target
26-
uses: actions/cache@v2
27-
with:
28-
path: |
29-
~/.cargo
30-
./target
31-
key: ${{ runner.os }}-cargo-fmt-${{ hashFiles('**/Cargo.lock') }}
32-
restore-keys: |
33-
${{ runner.os }}-cargo-fmt-${{ hashFiles('**/Cargo.lock') }}
34-
${{ runner.os }}-cargo-fmt
35-
36-
- name: Run fmt
37-
uses: actions-rs/cargo@v1
38-
with:
39-
command: fmt
40-
args: --all -- --check
21+
- name: Run
22+
run: cargo fmt --all -- --check

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ jobs:
1616
name: "Runs cargo publish --dry-run"
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
2020

21-
- uses: actions-rs/toolchain@v1
22-
with:
23-
profile: minimal
24-
toolchain: stable
21+
- name: Setup Rust
22+
uses: dtolnay/rust-toolchain@stable
2523

2624
- name: publish crate
2725
run: cargo publish --dry-run
@@ -35,11 +33,7 @@ jobs:
3533
uses: actions/checkout@v2
3634

3735
- name: Setup Rust
38-
uses: actions-rs/toolchain@v1
39-
with:
40-
profile: minimal
41-
toolchain: stable
42-
override: true
36+
uses: dtolnay/rust-toolchain@stable
4337

4438
- name: Login to Crates.io
4539
run: cargo login ${CRATES_IO_TOKEN}

.github/workflows/upload-artifacts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
5050
${{ runner.os }}-cargo-build
5151
52-
- name: Builds artifacts for {{ matrix.os }}
53-
uses: actions-rs/cargo@v1
54-
with:
55-
command: build
56-
args: --release --locked
52+
- name: Setup Rust
53+
uses: dtolnay/rust-toolchain@stable
54+
55+
- name: Build
56+
run: cargo build --release
5757

5858
- name: Upload release artifacts
5959
uses: actions/github-script@v5

0 commit comments

Comments
 (0)