Skip to content

Commit b5de856

Browse files
committed
gh-actions: actions-rs is archived
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 6b1e834 commit b5de856

2 files changed

Lines changed: 42 additions & 54 deletions

File tree

.github/workflows/branches.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,24 @@ jobs:
2020
- nightly
2121

2222
steps:
23-
- uses: actions/checkout@v2
24-
25-
- uses: actions-rs/toolchain@v1
26-
name: installing toolchain
27-
with:
28-
profile: default
29-
toolchain: ${{ matrix.rust }}
30-
override: true
31-
components: rustfmt, clippy
32-
33-
- uses: actions-rs/cargo@v1
34-
name: build
35-
with:
36-
command: build
37-
args: --release
38-
39-
- uses: actions-rs/cargo@v1
40-
name: fmt
41-
with:
42-
command: fmt
43-
args: --all -- --check
44-
45-
- uses: actions-rs/cargo@v1
46-
name: clippy
47-
with:
48-
command: clippy
49-
args: -- -D warnings
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Rust toolchain
26+
run: |
27+
rustup toolchain install ${{ matrix.rust }}
28+
29+
- name: Build examples
30+
run: |
31+
cargo build --examples
32+
33+
- name: Build release config
34+
run: |
35+
cargo build --release
36+
37+
- name: Check formatting
38+
run: |
39+
cargo fmt --all -- --check
40+
41+
- name: Check formatting
42+
run: |
43+
cargo clippy -- -D warnings

.github/workflows/main.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,24 @@ jobs:
2020
- nightly
2121

2222
steps:
23-
- uses: actions/checkout@v2
24-
25-
- uses: actions-rs/toolchain@v1
26-
name: installing toolchain
27-
with:
28-
profile: default
29-
toolchain: ${{ matrix.rust }}
30-
override: true
31-
components: rustfmt, clippy
32-
33-
- uses: actions-rs/cargo@v1
34-
name: build
35-
with:
36-
command: build
37-
args: --release
38-
39-
- uses: actions-rs/cargo@v1
40-
name: fmt
41-
with:
42-
command: fmt
43-
args: --all -- --check
44-
45-
- uses: actions-rs/cargo@v1
46-
name: clippy
47-
with:
48-
command: clippy
49-
args: -- -D warnings
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Rust toolchain
26+
run: |
27+
rustup toolchain install ${{ matrix.rust }}
28+
29+
- name: Build examples
30+
run: |
31+
cargo build --examples
32+
33+
- name: Build release config
34+
run: |
35+
cargo build --release
36+
37+
- name: Check formatting
38+
run: |
39+
cargo fmt --all -- --check
40+
41+
- name: Check formatting
42+
run: |
43+
cargo clippy -- -D warnings

0 commit comments

Comments
 (0)