Skip to content

Commit 9513665

Browse files
committed
Get rid of actions-rs
1 parent a2ae812 commit 9513665

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,17 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717

18-
- name: Setup 1.42.0-x86_64-unknown-linux-gnu
19-
uses: actions-rs/toolchain@v1
18+
- name: Set up Rust
19+
uses: dtolnay/rust-toolchain@master
2020
with:
2121
toolchain: 1.42.0-x86_64-unknown-linux-gnu
22-
override: true
23-
profile: minimal
2422
components: rustfmt
2523

2624
- name: '`cargo fmt -- --check`'
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: fmt
30-
args: -- --check
25+
run: cargo fmt -- --check
3126

3227
- name: '`cargo fmt --manifest-path ./xtask/Cargo.toml -- --check`'
33-
uses: actions-rs/cargo@v1
34-
with:
35-
command: fmt
36-
args: --manifest-path ./xtask/Cargo.toml -- --check
28+
run: cargo fmt --manifest-path ./xtask/Cargo.toml -- --check
3729

3830
build:
3931
strategy:
@@ -63,44 +55,30 @@ jobs:
6355
uses: actions/checkout@v3
6456

6557
- name: Setup ${{ matrix.toolchain }}
66-
uses: actions-rs/toolchain@v1
58+
uses: dtolnay/rust-toolchain@master
6759
with:
6860
toolchain: ${{ matrix.toolchain }}
69-
override: true
70-
profile: minimal
7161
components: clippy
7262

63+
- name: '`rustup override set ${{ matrix.toolchain }}`'
64+
run: rustup override set ${{ matrix.toolchain }}
65+
7366
- name: Setup Python 3.8
7467
uses: actions/setup-python@v4
7568
with:
7669
python-version: '3.8'
7770

7871
- name: '`cargo clippy --all-targets --profile test -- -D warnings`'
79-
uses: actions-rs/cargo@v1
80-
with:
81-
command: clippy
82-
args: --all-targets --profile test -- -D warnings
72+
run: cargo clippy --all-targets --profile test -- -D warnings
8373

8474
- name: '`cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`'
85-
uses: actions-rs/cargo@v1
86-
with:
87-
command: clippy
88-
args: --manifest-path ./xtask/Cargo.toml -- -D warnings
75+
run: cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings
8976

9077
- name: '`cargo test --all-targets --no-fail-fast`'
91-
uses: actions-rs/cargo@v1
92-
with:
93-
command: test
94-
args: --all-targets --no-fail-fast
78+
run: cargo test --all-targets --no-fail-fast
9579

9680
- name: '`cargo run --release`'
97-
uses: actions-rs/cargo@v1
98-
with:
99-
command: run
100-
args: --release
81+
run: cargo run --release
10182

10283
- name: '`cargo xtask test-examples`'
103-
uses: actions-rs/cargo@v1
104-
with:
105-
command: xtask
106-
args: test-examples
84+
run: cargo xtask test-examples

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy