Skip to content

Commit 54df3e9

Browse files
committed
ci: build and test with and without unstable features
1 parent 0c794da commit 54df3e9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: .github/workflows/rust.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ jobs:
4444
sudo apt-get update
4545
sudo apt-get install qemu-system-x86 ovmf -y
4646
47-
- name: Build
47+
- name: Build (without unstable)
4848
run: cargo xtask build --target x86_64
4949

50+
# It is sufficient if we include the "--include-unstable" flag only for one build as we
51+
# only plan to have platform-independent functionality behind basic feature gates.
52+
- name: Build (with unstable)
53+
run: cargo xtask build --target x86_64 --include-unstable
54+
5055
- name: Run VM tests
5156
run: cargo xtask run --target x86_64 --headless --ci
5257
timeout-minutes: 2
@@ -77,9 +82,12 @@ jobs:
7782
- name: Checkout sources
7883
uses: actions/checkout@v2
7984

80-
- name: Run cargo test
85+
- name: Run cargo test (without unstable)
8186
run: cargo xtask test
8287

88+
- name: Run cargo test (with unstable)
89+
run: cargo xtask test --include-unstable
90+
8391
lints:
8492
name: Lints
8593
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)