Skip to content

Commit da47550

Browse files
authored
Update ci.yml
1 parent 91eeb6e commit da47550

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,35 @@ jobs:
2121
- os: ubuntu-latest
2222
target: x86_64-unknown-linux-gnu
2323
toolchain: stable
24+
args: ""
2425
- os: ubuntu-latest
2526
target: x86_64-unknown-linux-gnu
2627
toolchain: nightly
28+
args: --all-features
2729
- os: windows-latest
2830
target: x86_64-pc-windows-msvc
2931
toolchain: stable
32+
args: ""
3033
- os: windows-latest
3134
target: x86_64-pc-windows-msvc
3235
toolchain: nightly
36+
args: --all-features
3337
- os: windows-latest
3438
target: i686-pc-windows-msvc
3539
toolchain: stable
40+
args: ""
3641
- os: windows-latest
3742
target: i686-pc-windows-msvc
3843
toolchain: nightly
44+
args: --all-features
3945
- os: macos-latest
4046
target: aarch64-apple-darwin
4147
toolchain: stable
48+
args: ""
4249
- os: macos-latest
4350
target: aarch64-apple-darwin
4451
toolchain: nightly
52+
args: --all-features
4553

4654
steps:
4755
- uses: actions/checkout@v6
@@ -53,10 +61,10 @@ jobs:
5361
target: ${{ matrix.target }}
5462

5563
- name: Build
56-
run: cargo build --target "${{ matrix.target }}"
64+
run: cargo build --target "${{ matrix.target }}" ${{ matrix.args }}
5765

5866
- name: Test
59-
run: cargo test --target "${{ matrix.target }}"
67+
run: cargo test --target "${{ matrix.target }}" ${{ matrix.args }}
6068

6169
documentation:
6270
runs-on: ubuntu-latest
@@ -110,3 +118,25 @@ jobs:
110118

111119
- name: Format check
112120
run: cargo fmt --all -- --check
121+
122+
hack:
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v6
126+
- name: Install latest nightly
127+
uses: dtolnay/rust-toolchain@nightly
128+
- name: cargo install cargo-hack
129+
uses: taiki-e/install-action@cargo-hack
130+
- name: cargo hack
131+
run: cargo hack --feature-powerset check
132+
133+
machete:
134+
runs-on: ubuntu-latest
135+
steps:
136+
- uses: actions/checkout@v6
137+
- name: Install latest nightly
138+
uses: dtolnay/rust-toolchain@nightly
139+
- name: cargo install cargo-machete
140+
uses: taiki-e/install-action@cargo-machete
141+
- run: cargo machete
142+

0 commit comments

Comments
 (0)