Skip to content

Commit 022ab6b

Browse files
authored
Drop usage of actions-rs (#271)
* Drop usage of actions-rs * Update ci.yml
1 parent a614016 commit 022ab6b

File tree

1 file changed

+13
-51
lines changed

1 file changed

+13
-51
lines changed

.github/workflows/ci.yml

+13-51
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
with:
2121
persist-credentials: false
2222

23-
- uses: actions-rs/toolchain@v1.0.7
23+
- uses: dtolnay/rust-toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
2424
with:
25-
profile: minimal
2625
toolchain: ${{ matrix.RUST }}
27-
override: true
2826
components: rustfmt, clippy
2927

3028
- uses: actions/cache@v3
@@ -37,28 +35,12 @@ jobs:
3735
target/
3836
key: ${{ runner.os }}-${{ matrix.RUST }}-cargo-2-${{ hashFiles('**/Cargo.toml') }}
3937

40-
- uses: actions-rs/[email protected]
41-
with:
42-
command: fmt
43-
args: --all -- --check
44-
- uses: actions-rs/[email protected]
45-
with:
46-
command: fmt
47-
args: --all --manifest-path=asn1_derive/Cargo.toml -- --check
48-
49-
- uses: actions-rs/[email protected]
50-
with:
51-
command: clippy
52-
args: --all-targets -- -D warnings
53-
- uses: actions-rs/[email protected]
54-
with:
55-
command: clippy
56-
args: --all-targets --manifest-path=asn1_derive/Cargo.toml -- -D warnings
38+
- run: cargo fmt --all -- --check
39+
- run: cargo fmt --all --manifest-path=asn1_derive/Cargo.toml -- --check
5740

58-
- uses: actions-rs/[email protected]
59-
with:
60-
command: clippy
61-
args: --all-targets --all-features -- -D warnings
41+
- run: cargo clippy --all-targets -- -D warnings
42+
- run: cargo clippy --all-targets --manifest-path=asn1_derive/Cargo.toml -- -D warnings
43+
- run: cargo clippy --all-targets --all-features -- -D warnings
6244

6345
ci:
6446
runs-on: ubuntu-latest
@@ -89,12 +71,9 @@ jobs:
8971
with:
9072
persist-credentials: false
9173

92-
- uses: actions-rs/toolchain@v1.0.7
74+
- uses: dtolnay/rust-toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
9375
with:
94-
profile: minimal
9576
toolchain: ${{ matrix.RUST.VERSION }}
96-
override: true
97-
components: rustfmt, clippy
9877

9978
- uses: actions/cache@v3
10079
with:
@@ -106,16 +85,10 @@ jobs:
10685
target/
10786
key: ${{ runner.os }}-${{ matrix.RUST.VERSION }}-cargo-2-${{ hashFiles('**/Cargo.toml') }}
10887

109-
- uses: actions-rs/[email protected]
110-
with:
111-
command: test
112-
args: ${{ matrix.RUST.FLAGS }}
88+
- run: cargo test ${{ matrix.RUST.FLAGS }}
11389
if: "${{ !matrix.RUST.SKIP_TESTS }}"
11490

115-
- uses: actions-rs/[email protected]
116-
with:
117-
command: check
118-
args: ${{ matrix.RUST.FLAGS }}
91+
- run: cargo check ${{ matrix.RUST.FLAGS }}
11992

12093
fuzz:
12194
runs-on: ubuntu-latest
@@ -129,11 +102,9 @@ jobs:
129102
with:
130103
persist-credentials: false
131104

132-
- uses: actions-rs/toolchain@v1.0.7
105+
- uses: dtolnay/rust-toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
133106
with:
134-
profile: minimal
135107
toolchain: ${{ matrix.RUST }}
136-
override: true
137108

138109
- uses: actions/cache@v3
139110
id: cargo-cache
@@ -146,20 +117,11 @@ jobs:
146117
target/
147118
key: ${{ runner.os }}-cargo-3-${{ hashFiles('**/Cargo.toml') }}
148119

149-
- uses: actions-rs/[email protected]
150-
with:
151-
crate: cargo-fuzz
152-
version: latest
120+
- run: cargo install cargo-fuzz
153121
if: steps.cargo-cache.outputs.cache-hit != 'true'
154122

155-
- uses: actions-rs/[email protected]
156-
with:
157-
command: fuzz
158-
args: run --all-features fuzz_asn1_parse -- -max_total_time=30
123+
- run: cargo fuzz run --all-features fuzz_asn1_parse -- -max_total_time=30
159124

160125
# On main we fuzz for 30 minutes, but only 30 seconds on PRs.
161-
- uses: actions-rs/[email protected]
162-
with:
163-
command: fuzz
164-
args: run --all-features fuzz_asn1_parse -- -max_total_time=1800
126+
- run: cargo fuzz run --all-features fuzz_asn1_parse -- -max_total_time=1800
165127
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)