Skip to content

Commit 9afff3e

Browse files
authored
Merge pull request #71 from qryxip/ja-all-enabled-update-ci
2 parents c61d275 + 0f14ed3 commit 9afff3e

File tree

1 file changed

+23
-46
lines changed

1 file changed

+23
-46
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,39 @@ on:
99
jobs:
1010
rustfmt:
1111
name: Rustfmt
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
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:
4032
fail-fast: false
4133
matrix:
4234
toolchain:
43-
# `x86_64-pc-windows-gnu` is tier 1 **for now**.
4435
- 1.42.0-x86_64-pc-windows-msvc
45-
- 1.42.0-x86_64-pc-windows-gnu
4636
- 1.42.0-x86_64-apple-darwin
4737
- 1.42.0-x86_64-unknown-linux-gnu
4838
include:
4939
- toolchain: 1.42.0-x86_64-pc-windows-msvc
50-
os: windows-latest
51-
- toolchain: 1.42.0-x86_64-pc-windows-gnu
52-
os: windows-latest
40+
os: windows-2022
5341
- toolchain: 1.42.0-x86_64-apple-darwin
54-
os: macOS-latest
42+
os: macos-11
5543
- toolchain: 1.42.0-x86_64-unknown-linux-gnu
56-
os: ubuntu-18.04
44+
os: ubuntu-22.04
5745

5846
name: ${{ matrix.toolchain }}
5947
runs-on: ${{ matrix.os }}
@@ -64,47 +52,36 @@ jobs:
6452
if: matrix.os == 'windows-latest'
6553

6654
- name: Checkout
67-
uses: actions/checkout@v2
55+
uses: actions/checkout@v3
6856

6957
- name: Setup ${{ matrix.toolchain }}
70-
uses: actions-rs/toolchain@v1
58+
uses: dtolnay/rust-toolchain@master
7159
with:
7260
toolchain: ${{ matrix.toolchain }}
73-
override: true
74-
profile: minimal
7561
components: clippy
7662

63+
- name: '`rustup override set ${{ matrix.toolchain }}`'
64+
run: rustup override set ${{ matrix.toolchain }}
65+
7766
- name: Setup Python 3.8
78-
uses: actions/setup-python@v1
67+
uses: actions/setup-python@v4
7968
with:
8069
python-version: '3.8'
8170

71+
- name: Rust Cache
72+
uses: Swatinem/rust-cache@v2
73+
8274
- name: '`cargo clippy --all-targets --profile test -- -D warnings`'
83-
uses: actions-rs/cargo@v1
84-
with:
85-
command: clippy
86-
args: --all-targets --profile test -- -D warnings
75+
run: cargo clippy --all-targets --profile test -- -D warnings
8776

8877
- name: '`cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings`'
89-
uses: actions-rs/cargo@v1
90-
with:
91-
command: clippy
92-
args: --manifest-path ./xtask/Cargo.toml -- -D warnings
78+
run: cargo clippy --manifest-path ./xtask/Cargo.toml -- -D warnings
9379

9480
- name: '`cargo test --all-targets --no-fail-fast`'
95-
uses: actions-rs/cargo@v1
96-
with:
97-
command: test
98-
args: --all-targets --no-fail-fast
81+
run: cargo test --all-targets --no-fail-fast
9982

10083
- name: '`cargo run --release`'
101-
uses: actions-rs/cargo@v1
102-
with:
103-
command: run
104-
args: --release
84+
run: cargo run --release
10585

10686
- name: '`cargo xtask test-examples`'
107-
uses: actions-rs/cargo@v1
108-
with:
109-
command: xtask
110-
args: test-examples
87+
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