25
25
toolchain : [nightly, beta, stable, "1.60"]
26
26
# Only Test macOS on stable to reduce macOS CI jobs
27
27
include :
28
- # x86_64-apple-darwin.
29
- - os : macos-12
30
- toolchain : stable
31
28
# aarch64-apple-darwin.
32
29
- os : macos-14
33
30
toolchain : stable
@@ -83,27 +80,13 @@ jobs:
83
80
84
81
ios :
85
82
name : iOS Simulator
86
- runs-on : ${{ matrix.os }}
87
- strategy :
88
- matrix :
89
- os : [macos-12, macos-14]
90
- # Only test on stable to reduce macOS CI jobs
91
- toolchain : [stable]
92
- include :
93
- # The Aarch64 device simulator doesn't seem to work on an x86-64 host
94
- # and the x86_64 device simulator doesn't seem to work on an Aarch64
95
- # host, at least within GitHub Actions.
96
- - os : macos-12
97
- target : x86_64-apple-ios
98
- ios_platform : auto-ios-x86_64
99
- - os : macos-14
100
- target : aarch64-apple-ios-sim
101
- ios_platform : auto-ios-aarch64-sim
83
+ runs-on : macos-14
102
84
steps :
103
85
- uses : actions/checkout@v4
104
- - uses : dtolnay/rust-toolchain@stable
86
+ - uses : dtolnay/rust-toolchain@master
105
87
with :
106
- targets : ${{ matrix.target }}
88
+ toolchain : stable
89
+ targets : aarch64-apple-ios-sim
107
90
- name : Install precompiled cargo-dinghy
108
91
run : |
109
92
VERSION=0.7.2
@@ -125,7 +108,7 @@ jobs:
125
108
echo "device=$SIM_ID" >> $GITHUB_ENV
126
109
- uses : Swatinem/rust-cache@v2
127
110
- name : Run tests
128
- run : cargo dinghy -p ${{ matrix.ios_platform }} -d ${{ env.device }} test
111
+ run : cargo dinghy -p auto-ios-aarch64-sim -d ${{ env.device }} test
129
112
130
113
windows :
131
114
name : Windows
@@ -257,19 +240,7 @@ jobs:
257
240
258
241
web :
259
242
name : Web
260
- strategy :
261
- fail-fast : false
262
- matrix :
263
- include :
264
- - os : ubuntu-22.04
265
- host : x86_64-unknown-linux-musl
266
- - os : macos-12
267
- host : x86_64-apple-darwin
268
- # We get spurious failures on Windows, see:
269
- # https://github.com/rust-random/getrandom/issues/400
270
- # - os: windows-2022
271
- # host: x86_64-pc-windows-msvc
272
- runs-on : ${{ matrix.os }}
243
+ runs-on : ubuntu-22.04
273
244
steps :
274
245
- uses : actions/checkout@v4
275
246
- uses : dtolnay/rust-toolchain@stable
@@ -279,7 +250,7 @@ jobs:
279
250
shell : bash
280
251
run : |
281
252
VERSION=v0.12.1
282
- URL=https://github.com/rustwasm/wasm-pack/releases/download/${VERSION}/wasm-pack-${VERSION}-${{ matrix.host }} .tar.gz
253
+ URL=https://github.com/rustwasm/wasm-pack/releases/download/${VERSION}/wasm-pack-${VERSION}-x86_64-unknown-linux-musl .tar.gz
283
254
wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin
284
255
wasm-pack --version
285
256
- uses : Swatinem/rust-cache@v2
@@ -295,16 +266,6 @@ jobs:
295
266
env :
296
267
RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" --cfg getrandom_browser_test
297
268
run : wasm-pack test --headless --chrome
298
- - name : Test (Edge)
299
- if : runner.os == 'Windows'
300
- env :
301
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" --cfg getrandom_browser_test
302
- run : wasm-pack test --headless --chrome --chromedriver $Env:EDGEWEBDRIVER\msedgedriver.exe
303
- - name : Test (Safari)
304
- if : runner.os == 'macOS'
305
- env :
306
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" --cfg getrandom_browser_test
307
- run : wasm-pack test --headless --safari
308
269
309
270
wasi :
310
271
name : WASI
0 commit comments