54
54
tool : cargo-hack,cargo-minimal-versions
55
55
- run : cargo build --all --all-features --all-targets
56
56
- 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
63
57
- run : cargo minimal-versions build --all --all-features
64
58
- run : cargo test
65
59
@@ -86,12 +80,16 @@ jobs:
86
80
fail-fast : false
87
81
matrix :
88
82
os : [ubuntu-latest, macos-latest]
83
+ rust : [nightly, stable]
89
84
steps :
90
85
- uses : actions/checkout@v4
91
86
- name : Install Rust
92
- run : rustup update stable
87
+ run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
93
88
- name : Install cross
94
89
uses : taiki-e/install-action@cross
90
+ - name : Add rust-src
91
+ if : startsWith(matrix.rust, 'nightly')
92
+ run : rustup component add rust-src
95
93
# We don't test BSDs, since we already test them in Cirrus.
96
94
- name : Android
97
95
if : startsWith(matrix.os, 'ubuntu')
@@ -116,6 +114,36 @@ jobs:
116
114
run : |
117
115
rustup target add x86_64-unknown-illumos
118
116
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
119
147
120
148
msrv :
121
149
runs-on : ${{ matrix.os }}
@@ -128,6 +156,10 @@ jobs:
128
156
- name : Install cargo-hack
129
157
uses : taiki-e/install-action@cargo-hack
130
158
- 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')
131
163
132
164
clippy :
133
165
runs-on : ubuntu-latest
0 commit comments