Skip to content

Commit 32bd719

Browse files
committed
update CI jobs to newer versions
1 parent c7a7a38 commit 32bd719

File tree

3 files changed

+15
-42
lines changed

3 files changed

+15
-42
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,14 @@ jobs:
1515
env:
1616
RUSTFLAGS: -D warnings
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
19+
- uses: dtolnay/rust-toolchain@stable
1920
with:
20-
# By default actions/checkout checks out a merge commit. Prefer the PR tip instead.
21-
# https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
22-
ref: ${{ github.event.pull_request.head.sha }}
23-
- uses: actions-rs/toolchain@v1
24-
with:
25-
toolchain: stable
2621
components: rustfmt, clippy
2722
- name: Lint (rustfmt)
28-
uses: actions-rs/cargo@v1
29-
with:
30-
command: xfmt
31-
args: --check
23+
run: cargo xfmt --check
3224
- name: Lint (clippy)
33-
uses: actions-rs/cargo@v1
34-
with:
35-
command: clippy
36-
args: --all-features --all-targets
25+
run: cargo clippy --all-features --all-targets
3726

3827
build:
3928
name: Build and test
@@ -47,20 +36,12 @@ jobs:
4736
env:
4837
RUSTFLAGS: -D warnings
4938
steps:
50-
- uses: actions/checkout@v2
51-
with:
52-
ref: ${{ github.event.pull_request.head.sha }}
53-
- uses: actions-rs/toolchain@v1
39+
- uses: actions/checkout@v3
40+
- uses: dtolnay/rust-toolchain@master
5441
with:
5542
toolchain: ${{ matrix.rust-version }}
56-
override: true
57-
43+
components: rustfmt, clippy
5844
- name: Build
59-
uses: actions-rs/cargo@v1
60-
with:
61-
command: build
45+
run: cargo build
6246
- name: Test
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: test
66-
args: --all-features
47+
run: cargo test --all-features

.github/workflows/docs.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ jobs:
1111
concurrency: ci-${{ github.ref }}
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions-rs/toolchain@v1
16-
with:
17-
toolchain: stable
14+
- uses: actions/checkout@v3
15+
- uses: dtolnay/rust-toolchain@stable
1816
- name: Build rustdoc
19-
uses: actions-rs/cargo@v1
20-
with:
21-
command: doc
22-
# cargo-compare currently pulls in cargo which bloats build times massively
23-
args: --all-features
17+
run: cargo doc --all-features
2418
- name: Organize
2519
run: |
2620
mkdir target/gh-pages
@@ -31,3 +25,4 @@ jobs:
3125
with:
3226
branch: gh-pages
3327
folder: target/gh-pages
28+
single-commit: true

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ jobs:
1111
if: github.repository_owner == 'sunshowers-code'
1212
runs-on: ubuntu-18.04
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
with:
1616
persist-credentials: false
1717
- name: Install Rust
18-
uses: actions-rs/toolchain@v1
19-
with:
20-
toolchain: stable
21-
override: true
18+
uses: dtolnay/rust-toolchain@stable
2219
- run: cargo publish
2320
env:
2421
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)