Skip to content

Commit c9421a7

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

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/ci.yml

Lines changed: 24 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,23 +140,42 @@ 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.
143149
cargo_options: --no-run
150+
# rcgen requires *ring* 0.16 which doesn't support this target.
151+
skip_rcgen: true
144152

145153
- target: arm-unknown-linux-gnueabihf
146154
host_os: ubuntu-22.04
147155

148156
- target: i686-pc-windows-msvc
149157
host_os: windows-latest
150158

159+
- target: riscv64gc-unknown-linux-gnu
160+
host_os: ubuntu-22.04
161+
# rcgen requires *ring* 0.16 which doesn't support this target.
162+
skip_rcgen: true
163+
164+
- target: wasm32-wasi
165+
host_os: ubuntu-22.04
166+
# rcgen requires *ring* 0.16 which doesn't support this target.
167+
skip_rcgen: true
168+
151169
- target: x86_64-unknown-linux-musl
152170
host_os: ubuntu-22.04
153171

154172
- target: x86_64-unknown-linux-gnu
155173
host_os: ubuntu-22.04
156174

175+
- rust_channel: 1.61.0
176+
# rcgen requires Rust 1.67.
177+
skip_rcgen: true
178+
157179
steps:
158180
- if: ${{ contains(matrix.host_os, 'ubuntu') }}
159181
run: sudo apt-get update -y
@@ -181,13 +203,12 @@ jobs:
181203
run: |
182204
cargo +${{ matrix.rust_channel }} test -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
183205
184-
# rcgen-based tests require Rust 1.67.
185-
- if: ${{ !contains(matrix.host_os, 'windows') && !contains(matrix.rust_channel, '1.61.0') }}
206+
- if: ${{ !contains(matrix.host_os, 'windows') && !contains(matrix.skip_rcgen, 'true') }}
186207
run: |
187208
mk/cargo.sh +${{ matrix.rust_channel }} test -p rcgen-tests -vv --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
188209
189210
# 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') }}
211+
- if: ${{ contains(matrix.host_os, 'windows') && !contains(matrix.skip_rcgen, 'true') }}
191212
run: |
192213
cargo +${{ matrix.rust_channel }} test -vv -p rcgen-tests --target=${{ matrix.target }} ${{ matrix.cargo_options }} ${{ matrix.features }} ${{ matrix.mode }}
193214

0 commit comments

Comments
 (0)