Skip to content

Commit 8df253e

Browse files
committed
CI: Run tests on more targets.
1 parent 1f74481 commit 8df253e

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ jobs:
118118
# portable.
119119
# Specifically choose `aarch64-pc-windows-msvc` since it was new in
120120
# *ring* 0.17.
121+
- aarch64-apple-darwin
121122
- aarch64-pc-windows-msvc
122123
- arm-unknown-linux-gnueabihf
123124
- i686-pc-windows-msvc
125+
- riscv64gc-unknown-linux-gnu
126+
- wasm32-wasi
124127
- x86_64-unknown-linux-musl
125128
- x86_64-unknown-linux-gnu
126129

@@ -137,6 +140,9 @@ jobs:
137140
- beta
138141

139142
include:
143+
- target: aarch64-apple-darwin
144+
host_os: macos-13-xlarge
145+
140146
- target: aarch64-pc-windows-msvc
141147
host_os: windows-latest
142148
# GitHub Actions doesn't have a way to run this target yet.
@@ -148,12 +154,30 @@ jobs:
148154
- target: i686-pc-windows-msvc
149155
host_os: windows-latest
150156

157+
- target: riscv64gc-unknown-linux-gnu
158+
host_os: ubuntu-22.04
159+
160+
- target: wasm32-wasi
161+
host_os: ubuntu-22.04
162+
151163
- target: x86_64-unknown-linux-musl
152164
host_os: ubuntu-22.04
153165

154166
- target: x86_64-unknown-linux-gnu
155167
host_os: ubuntu-22.04
156168

169+
# rcgen requires *ring* 0.16 which doesn't support this target.
170+
- target: aarch64-pc-windows-msvc
171+
skip_rcgen: true
172+
- target: riscv64gc-unknown-linux-gnu
173+
skip_rcgen: true
174+
- target: wasm32-wasi
175+
skip_rcgen: true
176+
177+
- rust_channel: 1.61.0
178+
# rcgen requires Rust 1.67.
179+
skip_rcgen: true
180+
157181
steps:
158182
- if: ${{ contains(matrix.host_os, 'ubuntu') }}
159183
run: sudo apt-get update -y
@@ -181,13 +205,12 @@ jobs:
181205
run: |
182206
cargo +${{ matrix.rust_channel }} test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
183207
184-
# rcgen-based tests require Rust 1.67.
185-
- if: ${{ !contains(matrix.host_os, 'windows') && !contains(matrix.rust_channel, '1.61.0') }}
208+
- if: ${{ !contains(matrix.host_os, 'windows') && !contains(matrix.skip_rcgen, 'true') }}
186209
run: |
187210
mk/cargo.sh +${{ matrix.rust_channel }} test -p rcgen-tests -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
188211
189212
# rcgen-based tests require Rust 1.67, and uses *ring* 0.16 which doesn't build for aarch64-pc-windows-msvc.
190-
- if: ${{ contains(matrix.host_os, 'windows') && !contains(matrix.rust_channel, '1.61.0') && !contains(matrix.target, 'aarch64-pc-windows-msvc') }}
213+
- if: ${{ contains(matrix.host_os, 'windows') && !contains(matrix.skip_rcgen, 'true') }}
191214
run: |
192215
cargo +${{ matrix.rust_channel }} test -vv -p rcgen-tests --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
193216

0 commit comments

Comments
 (0)