Skip to content

Commit 6a8d17f

Browse files
authored
Merge pull request #11 from rust-cv/update-deps-ci
Update deps ci
2 parents 1817371 + 7dfe2ab commit 6a8d17f

File tree

2 files changed

+17
-38
lines changed

2 files changed

+17
-38
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,80 +11,59 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout sources
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Install beta toolchain
17-
uses: actions-rs/toolchain@v1
17+
uses: dtolnay/rust-toolchain@beta
1818
with:
19-
profile: minimal
20-
toolchain: beta
21-
override: true
2219
components: rustfmt, clippy
2320

2421
- name: Set up cache
25-
uses: Swatinem/rust-cache@v1
22+
uses: Swatinem/rust-cache@v2
2623
with:
2724
cache-on-failure: true
2825

2926
- name: Run cargo fmt
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: fmt
33-
args: --all -- --check
27+
run: cargo fmt --all -- --check
3428

3529
- name: Run cargo clippy
36-
uses: actions-rs/cargo@v1
37-
with:
38-
command: clippy
39-
args: --tests -- -D warnings
30+
run: cargo clippy --all-targets --tests -- -D warnings
4031

4132
no_std:
4233
name: no_std
4334
runs-on: ubuntu-latest
4435
steps:
4536
- name: Checkout sources
46-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
4738

48-
- name: Install beta toolchain
49-
uses: actions-rs/toolchain@v1
39+
- name: Install beta toolchain for ARM
40+
uses: dtolnay/rust-toolchain@beta
5041
with:
51-
profile: minimal
52-
toolchain: beta
53-
target: armv7a-none-eabi
54-
override: true
42+
targets: armv7a-none-eabi
5543

5644
- name: Set up cache
57-
uses: Swatinem/rust-cache@v1
45+
uses: Swatinem/rust-cache@v2
5846
with:
5947
cache-on-failure: true
6048

6149
- name: Build binary for armv7a-none-eabi
62-
uses: actions-rs/cargo@v1
63-
with:
64-
command: rustc
65-
args: --target=armv7a-none-eabi --manifest-path=ensure_no_std/Cargo.toml
50+
run: cargo rustc --target=armv7a-none-eabi --manifest-path=ensure_no_std/Cargo.toml
6651

6752
tests:
6853
name: tests
6954
runs-on: ubuntu-latest
7055
steps:
7156
- name: Checkout sources
72-
uses: actions/checkout@v2
57+
uses: actions/checkout@v4
7358

7459
- name: Install beta toolchain
75-
uses: actions-rs/toolchain@v1
76-
with:
77-
profile: minimal
78-
toolchain: beta
79-
override: true
60+
uses: dtolnay/rust-toolchain@beta
8061

8162
- name: Set up cache
82-
uses: Swatinem/rust-cache@v1
63+
uses: Swatinem/rust-cache@v2
8364
with:
8465
cache-on-failure: true
8566

8667
- name: Run cargo test
87-
uses: actions-rs/cargo@v1
88-
with:
89-
command: test
90-
args: --all-features
68+
#run: cargo test --all-features --no-fail-fast --locked --workspace -- --nocapture
69+
run: cargo test --all-features --no-fail-fast --workspace -- --nocapture

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT"
1212
readme = "README.md"
1313

1414
[dependencies]
15-
sample-consensus = "1.0.1"
15+
sample-consensus = "1.0.2"
1616
rand_core = "0.9"
1717

1818
[dev-dependencies]

0 commit comments

Comments
 (0)