Skip to content

Commit 14bab5a

Browse files
committed
Update CI
1 parent b283b82 commit 14bab5a

File tree

3 files changed

+16
-41
lines changed

3 files changed

+16
-41
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,21 @@ jobs:
3131
TARGET: x86_64-unknown-linux-gnu
3232

3333
steps:
34-
- uses: actions/checkout@v2
35-
36-
- uses: actions-rs/toolchain@v1
34+
- uses: actions/checkout@v3
35+
- uses: dtolnay/rust-toolchain@master
3736
with:
38-
profile: minimal
3937
toolchain: ${{ matrix.rust }}
4038
target: ${{ matrix.TARGET }}
41-
override: true
4239

4340
- name: Install armv7 libraries
4441
if: ${{ matrix.TARGET == 'armv7-unknown-linux-gnueabihf' }}
45-
run: sudo apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
42+
run: sudo apt-get update && sudo apt-get install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf
4643

47-
- uses: actions-rs/cargo@v1
44+
- run: cargo test --target=${{ matrix.TARGET }}
4845
if: ${{ matrix.TARGET != 'armv7-unknown-linux-gnueabihf' }}
49-
with:
50-
command: test
51-
args: --target=${{ matrix.TARGET }}
52-
5346

54-
- uses: actions-rs/cargo@v1
47+
- run: cargo build --target=${{ matrix.TARGET }}
5548
if: ${{ matrix.TARGET == 'armv7-unknown-linux-gnueabihf' }}
56-
with:
57-
command: build
58-
args: --target=${{ matrix.TARGET }}
5949

6050
ci-macos:
6151
name: CI-macOS
@@ -67,16 +57,10 @@ jobs:
6757
TARGET: [x86_64-apple-darwin]
6858

6959
steps:
70-
- uses: actions/checkout@v2
71-
72-
- uses: actions-rs/toolchain@v1
60+
- uses: actions/checkout@v3
61+
- uses: dtolnay/rust-toolchain@master
7362
with:
74-
profile: minimal
7563
toolchain: ${{ matrix.rust }}
7664
target: ${{ matrix.TARGET }}
77-
override: true
7865

79-
- uses: actions-rs/cargo@v1
80-
with:
81-
command: build
82-
args: --target=${{ matrix.TARGET }}
66+
- run: cargo build --target=${{ matrix.TARGET }}

.github/workflows/clippy.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ jobs:
1010
clippy_check:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
13+
- uses: actions/checkout@v3
14+
- uses: dtolnay/rust-toolchain@master
1515
with:
16-
profile: minimal
17-
toolchain: 1.55.0
18-
override: true
16+
toolchain: 1.71.0
1917
components: clippy
20-
- uses: actions-rs/clippy-check@v1
21-
with:
22-
token: ${{ secrets.GITHUB_TOKEN }}
18+
- run: cargo clippy

.github/workflows/rustfmt.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ jobs:
1212
name: Rustfmt
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions-rs/toolchain@v1
15+
- uses: actions/checkout@v3
16+
- uses: dtolnay/rust-toolchain@master
1717
with:
18-
profile: minimal
19-
toolchain: stable
20-
override: true
18+
toolchain: 1.71.0
2119
components: rustfmt
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: fmt
25-
args: --all -- --check
20+
- run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)