Skip to content

Commit 75c4a35

Browse files
authored
ci: replace unmaintained action-rs (pubgrub-rs#166)
* Update check_formatting ci job * Update clippy ci job * Update test ci job (no cache) * Update check_documentation ci job (no cache)
1 parent 4c28c6c commit 75c4a35

File tree

1 file changed

+11
-59
lines changed

1 file changed

+11
-59
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,19 @@ jobs:
1414
name: Tests pass
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Install stable Rust
19-
uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: stable
22-
profile: minimal
23-
24-
- name: Get Cargo version
25-
id: cargo_version
26-
run: echo "::set-output name=version::$(cargo -V | tr -d ' ')"
27-
shell: bash
28-
29-
- name: Download cache
30-
uses: actions/cache@v2
31-
with:
32-
path: |
33-
~/.cargo/registry/index/
34-
~/.cargo/registry/cache/
35-
~/.cargo/git/db/
36-
target/
37-
key: ${{ runner.os }}-${{ steps.cargo_version.outputs.version }}-${{ hashFiles('Cargo.toml') }}
38-
restore-keys: ${{ runner.os }}-${{ steps.cargo_version.outputs.version }}
39-
40-
- name: Build
41-
run: cargo build --verbose
42-
43-
- name: Run tests
44-
run: cargo test --features=serde --verbose
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
- run: cargo build --verbose
20+
- run: cargo test --features=serde --verbose
4521

4622
clippy:
4723
name: No warnings from Clippy
4824
runs-on: ubuntu-latest
4925
steps:
50-
- uses: actions/checkout@v2
51-
- name: Install stable Rust
52-
uses: actions-rs/toolchain@v1
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
5328
with:
54-
toolchain: stable
55-
profile: minimal
5629
components: clippy
57-
5830
- name: Check Clippy lints
5931
env:
6032
RUSTFLAGS: -D warnings
@@ -64,38 +36,18 @@ jobs:
6436
name: Source code is formatted
6537
runs-on: ubuntu-latest
6638
steps:
67-
- uses: actions/checkout@v2
68-
- name: Install stable Rust
69-
uses: actions-rs/toolchain@v1
39+
- uses: actions/checkout@v4
40+
- uses: dtolnay/rust-toolchain@stable
7041
with:
71-
toolchain: stable
72-
profile: minimal
7342
components: rustfmt
74-
75-
- name: Check formatting
76-
run: cargo fmt --all -- --check
43+
- run: cargo fmt --all -- --check
7744

7845
check_documentation:
7946
name: Documentation builds successfully
8047
runs-on: ubuntu-latest
8148
steps:
82-
- uses: actions/checkout@v2
83-
- name: Install nightly Rust
84-
uses: actions-rs/toolchain@v1
85-
with:
86-
toolchain: nightly
87-
profile: minimal
88-
89-
- name: Download cache
90-
uses: actions/cache@v2
91-
with:
92-
path: |
93-
~/.cargo/registry/index/
94-
~/.cargo/registry/cache/
95-
~/.cargo/git/db/
96-
target/
97-
key: documentation
98-
49+
- uses: actions/checkout@v4
50+
- uses: dtolnay/rust-toolchain@nightly
9951
- name: Check documentation
10052
env:
10153
RUSTDOCFLAGS: -D warnings

0 commit comments

Comments
 (0)