Skip to content

Commit 12c1f3e

Browse files
committed
replace actions-rs with maintained workflows
1 parent 902981f commit 12c1f3e

File tree

4 files changed

+10
-30
lines changed

4 files changed

+10
-30
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818

19-
- uses: actions-rs/toolchain@v1
19+
- uses: dtolnay/rust-toolchain@stable
2020
name: Install rust toolchain
21-
with:
22-
toolchain: stable
23-
override: true
2421

2522
- uses: Swatinem/rust-cache@v2
2623
name: Add caching
2724

28-
- uses: actions-rs/cargo@v1
29-
name: Build crate
30-
with:
31-
command: build
32-
args: --verbose --all-features
25+
- name: Build crate
26+
run: cargo build --verbose --all-features

.github/workflows/cargo-doc-check.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818

19-
- uses: actions-rs/toolchain@v1
19+
- uses: dtolnay/rust-toolchain@stable
2020
name: Install rust toolchain
21-
with:
22-
toolchain: stable
23-
override: true
2421

2522
- uses: Swatinem/rust-cache@v2
2623
name: Add caching
2724

28-
- uses: actions-rs/cargo@v1
29-
name: Check Documentation with Rustdoc
30-
with:
31-
command: doc
32-
args: --verbose --no-deps
25+
- name: Check Documentation with Rustdoc
26+
run: cargo doc --verbose --no-deps

.github/workflows/clippy-lint.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@ jobs:
88
steps:
99
- uses: actions/checkout@v3
1010

11-
- uses: actions-rs/toolchain@v1
11+
- uses: dtolnay/rust-toolchain@stable
1212
name: Install Rust Toolchain
1313
with:
14-
toolchain: stable
1514
components: clippy
16-
override: true
1715

1816
- uses: Swatinem/rust-cache@v2
1917
name: Add caching
2018

21-
- uses: actions-rs/clippy-check@v1
22-
name: Lint and Check codebase with Clippy
23-
with:
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
args: --all-features --verbose
19+
- name: Lint and Check codebase with Clippy
20+
run: cargo clippy --all-features --verbose -- -D warnings

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- uses: actions-rs/toolchain@v1
17-
with:
18-
toolchain: stable
19-
override: true
16+
- uses: dtolnay/rust-toolchain@stable
2017
- uses: katyo/publish-crates@v2
2118
with:
2219
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)