Skip to content

Commit 705ae85

Browse files
chore: Update CI (#258)
1 parent dd09c83 commit 705ae85

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

.github/workflows/bindings.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ jobs:
5454
- uses: actions/checkout@v3
5555

5656
- name: install stable toolchain
57-
uses: actions-rs/toolchain@v1
57+
uses: dtolnay/rust-toolchain@master
5858
with:
5959
toolchain: stable
6060
target: ${{ matrix.target }}
61-
profile: minimal
62-
override: true
6361

6462
- name: build libraries
6563
run: |

.github/workflows/ci.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Check formatting
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: install stable toolchain
17-
uses: actions-rs/toolchain@v1
17+
uses: dtolnay/rust-toolchain@master
1818
with:
1919
toolchain: stable
20-
profile: minimal
2120
components: rustfmt
22-
override: true
2321

2422
- name: cargo fmt
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: fmt
28-
args: --all -- --check
23+
run: cargo fmt --all -- --check
2924

3025
- name: clang-format
3126
uses: jidicula/clang-format-action@v4.11.0
@@ -40,29 +35,22 @@ jobs:
4035
os: [macOS-latest, windows-2019, ubuntu-latest]
4136
name: cargo clippy+test
4237
steps:
43-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
4439

4540
- name: install stable toolchain
46-
uses: actions-rs/toolchain@v1
41+
uses: dtolnay/rust-toolchain@master
4742
with:
4843
toolchain: stable
4944
components: clippy
50-
profile: minimal
51-
override: true
5245

5346
- name: restore cache
54-
uses: Swatinem/rust-cache@v1
47+
uses: Swatinem/rust-cache@v2
5548

5649
- name: cargo clippy
57-
uses: actions-rs/cargo@v1
58-
with:
59-
command: clippy
60-
args: --all-targets -- -D warnings
50+
run: cargo clippy --all-targets -- -D warnings
6151

6252
- name: cargo test
63-
uses: actions-rs/cargo@v1
64-
with:
65-
command: test
53+
run: cargo test
6654

6755
generate-headers:
6856
uses: AccessKit/accesskit/.github/workflows/generate-headers.yml@main

.github/workflows/generate-headers.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ jobs:
99
- uses: actions/checkout@v3
1010

1111
- name: install nightly toolchain
12-
uses: actions-rs/toolchain@v1
13-
with:
14-
toolchain: nightly
15-
profile: minimal
16-
override: true
12+
uses: dtolnay/rust-toolchain@nightly
1713

1814
- uses: dtolnay/install@master
1915
with:

0 commit comments

Comments
 (0)