Skip to content

Commit 84f7f27

Browse files
committed
ci: Sync cross test/build config from polling
1 parent c86a477 commit 84f7f27

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ jobs:
5454
tool: cargo-hack,cargo-minimal-versions
5555
- run: cargo build --all --all-features --all-targets
5656
- run: cargo hack build --feature-powerset --no-dev-deps
57-
- name: Add rust-src
58-
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
59-
run: rustup component add rust-src
60-
- name: Check ESP-IDF
61-
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
62-
run: cargo check -Z build-std --target riscv32imc-esp-espidf
6357
- run: cargo minimal-versions build --all --all-features
6458
- run: cargo test
6559

@@ -86,12 +80,16 @@ jobs:
8680
fail-fast: false
8781
matrix:
8882
os: [ubuntu-latest, macos-latest]
83+
rust: [nightly, stable]
8984
steps:
9085
- uses: actions/checkout@v4
9186
- name: Install Rust
92-
run: rustup update stable
87+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
9388
- name: Install cross
9489
uses: taiki-e/install-action@cross
90+
- name: Add rust-src
91+
if: startsWith(matrix.rust, 'nightly')
92+
run: rustup component add rust-src
9593
# We don't test BSDs, since we already test them in Cirrus.
9694
- name: Android
9795
if: startsWith(matrix.os, 'ubuntu')
@@ -116,6 +114,36 @@ jobs:
116114
run: |
117115
rustup target add x86_64-unknown-illumos
118116
cargo build --target x86_64-unknown-illumos
117+
- name: Redox
118+
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
119+
run: |
120+
rustup target add x86_64-unknown-redox
121+
cargo check --target x86_64-unknown-redox
122+
# TODO:
123+
# - name: HermitOS
124+
# if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
125+
# run: cargo check -Z build-std --target x86_64-unknown-hermit
126+
# TODO:
127+
# - name: Check haiku
128+
# if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
129+
# run: cargo check -Z build-std --target x86_64-unknown-haiku
130+
- name: Check vita
131+
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
132+
run: cargo check -Z build-std --target armv7-sony-vita-newlibeabihf
133+
- name: Check ESP-IDF
134+
if: startsWith(matrix.rust, 'nightly') && startsWith(matrix.os, 'ubuntu')
135+
run: cargo check -Z build-std --target riscv32imc-esp-espidf
136+
137+
wine:
138+
runs-on: ubuntu-22.04
139+
steps:
140+
- uses: actions/checkout@v4
141+
- name: Install Rust
142+
run: rustup update stable
143+
- uses: taiki-e/setup-cross-toolchain-action@v1
144+
with:
145+
target: x86_64-pc-windows-gnu
146+
- run: cargo test --target x86_64-pc-windows-gnu
119147

120148
msrv:
121149
runs-on: ${{ matrix.os }}
@@ -128,6 +156,10 @@ jobs:
128156
- name: Install cargo-hack
129157
uses: taiki-e/install-action@cargo-hack
130158
- run: cargo hack build --no-dev-deps --rust-version
159+
- run: cargo hack build --no-dev-deps --rust-version --target x86_64-unknown-freebsd
160+
if: startsWith(matrix.os, 'ubuntu')
161+
- run: cargo hack build --no-dev-deps --rust-version --target x86_64-unknown-netbsd
162+
if: startsWith(matrix.os, 'ubuntu')
131163

132164
clippy:
133165
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)