Skip to content

Commit b6aef16

Browse files
committed
Update CI
1 parent 14ba9b9 commit b6aef16

File tree

3 files changed

+16
-62
lines changed

3 files changed

+16
-62
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[alias]
2+
format = "fmt"
3+
format-check = "fmt -- --check"
4+
lint = "clippy --all-targets --all-features --examples --tests -- -D warnings"
5+
test-cover = "llvm-cov --all-features --lcov --output-path lcov.info"

.github/workflows/ci.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,19 @@ jobs:
1616
rust: 1.56.0
1717
- os: ubuntu-latest
1818
target: x86_64-unknown-linux-gnu
19-
rust: 1.51.0
19+
rust: 1.56.0
2020
- os: ubuntu-latest
2121
target: i686-unknown-linux-gnu
22-
rust: 1.51.0
22+
rust: 1.56.0
2323
- os: windows-latest
2424
target: i686-pc-windows-msvc
25-
rust: 1.51.0
25+
rust: 1.56.0
2626
- os: windows-latest
2727
target: x86_64-pc-windows-msvc
28-
rust: 1.51.0
28+
rust: 1.56.0
2929
- os: ubuntu-latest
3030
target: x86_64-unknown-linux-gnu
3131
rust: stable
32-
- os: ubuntu-latest
33-
target: x86_64-unknown-linux-gnu
34-
rust: beta
3532
runs-on: ${{ matrix.os }}
3633
steps:
3734
- name: Install rust
@@ -42,7 +39,7 @@ jobs:
4239
target: ${{ matrix.target }}
4340
override: true
4441
- name: Checkout
45-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4643
- name: Install linker
4744
if: matrix.target == 'i686-unknown-linux-gnu'
4845
run: |
@@ -52,23 +49,7 @@ jobs:
5249
uses: actions-rs/cargo@v1
5350
with:
5451
command: test
55-
args: --target ${{ matrix.target }} --lib
56-
nightly:
57-
name: Nightly Tests
58-
runs-on: ubuntu-latest
59-
steps:
60-
- name: Install rust
61-
uses: actions-rs/toolchain@v1
62-
with:
63-
toolchain: nightly
64-
override: true
65-
- name: Checkout
66-
uses: actions/checkout@v2
67-
- name: Test
68-
uses: actions-rs/cargo@v1
69-
with:
70-
command: test
71-
args: --lib
52+
args: --all-features --target ${{ matrix.target }}
7253
lint:
7354
name: Linting (fmt + clippy)
7455
runs-on: ubuntu-latest
@@ -77,18 +58,16 @@ jobs:
7758
uses: actions-rs/toolchain@v1
7859
with:
7960
profile: minimal
80-
toolchain: stable
61+
toolchain: 1.56.0
8162
override: true
8263
components: rustfmt, clippy
8364
- name: Checkout
84-
uses: actions/checkout@v2
85-
- name: Clippy
65+
uses: actions/checkout@v3
66+
- name: Lint check
8667
uses: actions-rs/cargo@v1
8768
with:
88-
command: clippy
89-
args: --tests --examples
69+
command: lint
9070
- name: Format check
9171
uses: actions-rs/cargo@v1
9272
with:
93-
command: fmt
94-
args: -- --check
73+
command: format-check

Makefile

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)