Skip to content

Commit 961e6ad

Browse files
committed
Update CI
1 parent 9a1e747 commit 961e6ad

File tree

1 file changed

+10
-45
lines changed

1 file changed

+10
-45
lines changed

.github/workflows/crypto-primes.yml

Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
target:
2323
- wasm32-unknown-unknown
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- uses: actions-rs/toolchain@v1
2727
with:
2828
profile: minimal
@@ -31,11 +31,11 @@ jobs:
3131
override: true
3232
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
3333

34-
codecov:
34+
test-and-coverage:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v3
38-
- uses: actions-rs/toolchain@v1
37+
- uses: actions/checkout@v4
38+
- uses: dtolnay/rust-toolchain@v1
3939
with:
4040
profile: minimal
4141
toolchain: stable
@@ -46,36 +46,12 @@ jobs:
4646
- name: Generate code coverage
4747
run: cargo llvm-cov --features default-rng,multicore --workspace --lcov --output-path lcov.info
4848
- name: Upload coverage to Codecov
49-
uses: codecov/codecov-action@v4
49+
uses: codecov/codecov-action@v5
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252
files: lcov.info
5353
fail_ci_if_error: true
5454

55-
tests:
56-
runs-on: ubuntu-latest
57-
strategy:
58-
matrix:
59-
include:
60-
# 32-bit Linux
61-
- target: i686-unknown-linux-gnu
62-
rust: stable
63-
deps: sudo apt update && sudo apt install gcc-multilib
64-
65-
# 64-bit Linux
66-
- target: x86_64-unknown-linux-gnu
67-
rust: stable
68-
steps:
69-
- uses: actions/checkout@v3
70-
- uses: actions-rs/toolchain@v1
71-
with:
72-
toolchain: ${{ matrix.rust }}
73-
target: ${{ matrix.target }}
74-
profile: minimal
75-
override: true
76-
- run: ${{ matrix.deps }}
77-
- run: cargo test --target ${{ matrix.target }}
78-
7955
slow-tests:
8056
runs-on: ubuntu-latest
8157
strategy:
@@ -91,7 +67,7 @@ jobs:
9167
rust: stable
9268
deps: sudo apt update && sudo apt install gcc-multilib
9369
steps:
94-
- uses: actions/checkout@v3
70+
- uses: actions/checkout@v4
9571
- uses: actions-rs/toolchain@v1
9672
with:
9773
toolchain: ${{ matrix.rust }}
@@ -104,10 +80,10 @@ jobs:
10480
clippy:
10581
runs-on: ubuntu-latest
10682
steps:
107-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
10884
- uses: actions-rs/toolchain@v1
10985
with:
110-
toolchain: stable
86+
toolchain: 1.81.0 # MSRV
11187
components: clippy
11288
override: true
11389
profile: minimal
@@ -116,7 +92,7 @@ jobs:
11692
rustfmt:
11793
runs-on: ubuntu-latest
11894
steps:
119-
- uses: actions/checkout@v3
95+
- uses: actions/checkout@v4
12096
- uses: actions-rs/toolchain@v1
12197
with:
12298
toolchain: stable
@@ -128,21 +104,10 @@ jobs:
128104
command: fmt
129105
args: --all -- --check
130106

131-
# just building them to check that they're up to date with the API
132-
build-benchmarks:
133-
runs-on: ubuntu-latest
134-
steps:
135-
- uses: actions/checkout@v3
136-
- uses: actions-rs/toolchain@v1
137-
with:
138-
toolchain: 1.81.0
139-
profile: minimal
140-
- run: cargo build --all-features --benches
141-
142107
cargo-careful:
143108
runs-on: ubuntu-latest
144109
steps:
145-
- uses: actions/checkout@v3
110+
- uses: actions/checkout@v4
146111
- uses: actions-rs/toolchain@v1
147112
with:
148113
toolchain: nightly

0 commit comments

Comments
 (0)