Skip to content

Commit 1fc27b1

Browse files
authored
ci: remove macos-12 jobs (#540)
`macOS 12` workers are in the process of deprecation and will be eventually removed, see actions/runner-images#10721.
1 parent 4bbf71d commit 1fc27b1

File tree

1 file changed

+7
-46
lines changed

1 file changed

+7
-46
lines changed

.github/workflows/tests.yml

+7-46
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
toolchain: [nightly, beta, stable, "1.60"]
2626
# Only Test macOS on stable to reduce macOS CI jobs
2727
include:
28-
# x86_64-apple-darwin.
29-
- os: macos-12
30-
toolchain: stable
3128
# aarch64-apple-darwin.
3229
- os: macos-14
3330
toolchain: stable
@@ -83,27 +80,13 @@ jobs:
8380

8481
ios:
8582
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
10284
steps:
10385
- uses: actions/checkout@v4
104-
- uses: dtolnay/rust-toolchain@stable
86+
- uses: dtolnay/rust-toolchain@master
10587
with:
106-
targets: ${{ matrix.target }}
88+
toolchain: stable
89+
targets: aarch64-apple-ios-sim
10790
- name: Install precompiled cargo-dinghy
10891
run: |
10992
VERSION=0.7.2
@@ -125,7 +108,7 @@ jobs:
125108
echo "device=$SIM_ID" >> $GITHUB_ENV
126109
- uses: Swatinem/rust-cache@v2
127110
- 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
129112

130113
windows:
131114
name: Windows
@@ -257,19 +240,7 @@ jobs:
257240

258241
web:
259242
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
273244
steps:
274245
- uses: actions/checkout@v4
275246
- uses: dtolnay/rust-toolchain@stable
@@ -279,7 +250,7 @@ jobs:
279250
shell: bash
280251
run: |
281252
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
283254
wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin
284255
wasm-pack --version
285256
- uses: Swatinem/rust-cache@v2
@@ -295,16 +266,6 @@ jobs:
295266
env:
296267
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="wasm_js" --cfg getrandom_browser_test
297268
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
308269

309270
wasi:
310271
name: WASI

0 commit comments

Comments
 (0)