Skip to content

Commit f4384ea

Browse files
committed
Update GH actions for supporting unstable features
1 parent 168b954 commit f4384ea

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
tool: cargo-hack,cargo-minimal-versions
1717
- run: rustup set profile minimal
1818
- run: rustup toolchain install ${{ matrix.tc }}
19-
- run: cargo +${{ matrix.tc }} test --all --all-features
19+
- run: cargo +${{ matrix.tc }} test --all
2020
test:
2121
runs-on: ${{ matrix.os }}
2222
strategy:
@@ -30,6 +30,20 @@ jobs:
3030
tool: cargo-hack,cargo-minimal-versions
3131
- run: rustup set profile minimal
3232
- run: rustup toolchain install ${{ matrix.tc }}
33+
- run: cargo +${{ matrix.tc }} minimal-versions test --all
34+
test-unstable-features:
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
matrix:
38+
os: [ubuntu-latest, macos-latest, windows-latest]
39+
tc: [nightly]
40+
steps:
41+
- uses: taiki-e/checkout-action@v1
42+
- uses: taiki-e/install-action@v2
43+
with:
44+
tool: cargo-hack,cargo-minimal-versions
45+
- run: rustup set profile minimal
46+
- run: rustup toolchain install ${{ matrix.tc }}
3347
- run: cargo +${{ matrix.tc }} minimal-versions test --all --all-features
3448
cross-compile:
3549
runs-on: ${{ matrix.os }}
@@ -53,7 +67,7 @@ jobs:
5367
- run: rustup set profile minimal
5468
- run: rustup toolchain install ${{ matrix.tc }}
5569
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
56-
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
70+
- run: cargo +${{ matrix.tc }} minimal-versions build --all --target=${{ matrix.cc }}
5771
cross-compile-ios:
5872
runs-on: ${{ matrix.os }}
5973
strategy:
@@ -69,4 +83,4 @@ jobs:
6983
- run: rustup set profile minimal
7084
- run: rustup toolchain install ${{ matrix.tc }}
7185
- run: rustup target add ${{ matrix.cc }} --toolchain ${{ matrix.tc }}
72-
- run: cargo +${{ matrix.tc }} minimal-versions build --all --all-features --target=${{ matrix.cc }}
86+
- run: cargo +${{ matrix.tc }} minimal-versions build --all --target=${{ matrix.cc }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)