@@ -259,36 +259,32 @@ jobs:
259
259
260
260
name : Build Channels macOS
261
261
needs : macos
262
- # FIXME: Use macOS 11 for now as CI failed with a linker error on macOS 12 image:
263
- # ld: in /.../x86_64-apple-darwin/lib/libstd-a4729905.rlib(rust.metadata.bin),
264
- # archive member 'rust.metadata.bin' with length 2958149 is not mach-o or llvm bitcode file '/.../x86_64-apple-darwin/lib/libstd-a4729905.rlib'
265
- # Possibly related: https://github.com/actions/runner-images/issues/6350
266
- runs-on : macos-11
267
262
env :
268
263
OS : macos
269
264
strategy :
270
265
fail-fast : true
271
266
max-parallel : 4
272
267
matrix :
273
- toolchain : [
274
- stable,
275
- beta,
276
- nightly,
277
- 1.13.0,
278
- 1.19.0,
279
- 1.24.0,
280
- 1.25.0,
281
- 1.30.0,
282
- ]
268
+ target :
269
+ - { toolchain: stable, os: macos-12 }
270
+ - { toolchain: beta, os: macos-12 }
271
+ - { toolchain: nightly, os: macos-12 }
272
+ # Use macOS 11 for older toolchains as newer Xcode donesn't work well.
273
+ - { toolchain: 1.13.0, os: macos-11 }
274
+ - { toolchain: 1.19.0, os: macos-11 }
275
+ - { toolchain: 1.24.0, os: macos-11 }
276
+ - { toolchain: 1.25.0, os: macos-11 }
277
+ - { toolchain: 1.30.0, os: macos-11 }
278
+ runs-on : ${{ matrix.target.os }}
283
279
steps :
284
280
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
285
281
with :
286
282
github_token : " ${{ secrets.GITHUB_TOKEN }}"
287
283
- uses : actions/checkout@v3
288
284
- name : Setup Rust toolchain
289
- run : TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/install-rust.sh
285
+ run : TOOLCHAIN=${{ matrix.target. toolchain }} sh ./ci/install-rust.sh
290
286
- name : Execute build.sh
291
- run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
287
+ run : LIBC_CI=1 TOOLCHAIN=${{ matrix.target. toolchain }} sh ./ci/build.sh
292
288
293
289
build_channels_windows :
294
290
permissions :
0 commit comments