Skip to content

Commit b7de2be

Browse files
committed
refactor(ci): move off of actions-rs
1 parent ad84da7 commit b7de2be

File tree

7 files changed

+23
-40
lines changed

7 files changed

+23
-40
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
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: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
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: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ jobs:
66
clippy:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
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: Add problem matcher
20+
run: echo "::add-matcher::${{ runner.tool_cache }}/rust.json"
21+
22+
- name: Lint and Check codebase with Clippy
23+
run: cargo clippy --all-features --verbose -- -D warnings

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
options: --security-opt seccomp=unconfined
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Generate code coverage
1616
run: |
1717
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
1818
1919
- name: Upload to codecov.io
20-
uses: codecov/codecov-action@v3
20+
uses: codecov/codecov-action@v4
2121
with:
2222
fail_ci_if_error: true

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ jobs:
1212
name: Publish
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions-rs/toolchain@v1
17-
with:
18-
toolchain: stable
19-
override: true
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@stable
2017
- uses: katyo/publish-crates@v2
2118
with:
2219
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
env:
5151
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
steps:
53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454
- name: Install Rust
5555
run: rustup update 1.71.0 --no-self-update && rustup default 1.71.0
5656
- name: Install cargo-dist
@@ -96,7 +96,7 @@ jobs:
9696
env:
9797
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9898
steps:
99-
- uses: actions/checkout@v3
99+
- uses: actions/checkout@v4
100100
- name: Install Rust
101101
run: rustup update 1.71.0 --no-self-update && rustup default 1.71.0
102102
- name: Install cargo-dist
@@ -128,7 +128,7 @@ jobs:
128128
env:
129129
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130130
steps:
131-
- uses: actions/checkout@v3
131+
- uses: actions/checkout@v4
132132
- name: mark release as non-draft
133133
run: |
134134
gh release edit ${{ github.ref_name }} --draft=false

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Run tests
1919
run: cargo test --verbose

0 commit comments

Comments
 (0)