@@ -259,36 +259,32 @@ jobs:
259259
260260 name : Build Channels macOS
261261 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
267262 env :
268263 OS : macos
269264 strategy :
270265 fail-fast : true
271266 max-parallel : 4
272267 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 }}
283279 steps :
284280 - uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
285281 with :
286282 github_token : " ${{ secrets.GITHUB_TOKEN }}"
287283 - uses : actions/checkout@v3
288284 - 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
290286 - 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
292288
293289 build_channels_windows :
294290 permissions :
0 commit comments