Skip to content

Commit 94df917

Browse files
committed
Auto merge of rust-lang#120509 - shepmaster:m1-runners-redux, r=jdno
Re-enable M1 runners on GitHub Actions r? `@ghost`
2 parents ff95e52 + c2573c7 commit 94df917

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

.github/workflows/ci.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ jobs:
364364
os: macos-13
365365
- name: dist-aarch64-apple
366366
env:
367-
SCRIPT: "./x.py dist bootstrap --include-default-paths --stage 2"
368-
RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin --enable-full-tools --enable-sanitizers --enable-profiler --disable-docs --set rust.jemalloc"
367+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
368+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
369369
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
370370
SELECT_XCODE: /Applications/Xcode_13.4.1.app
371371
USE_XCODE_CLANG: 1
@@ -375,8 +375,20 @@ jobs:
375375
NO_DEBUG_ASSERTIONS: 1
376376
NO_OVERFLOW_CHECKS: 1
377377
DIST_REQUIRE_ALL_TOOLS: 1
378-
JEMALLOC_SYS_WITH_LG_PAGE: 14
379-
os: macos-13
378+
os: macos-14
379+
- name: aarch64-apple
380+
env:
381+
SCRIPT: "./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
382+
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc"
383+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
384+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
385+
USE_XCODE_CLANG: 1
386+
MACOSX_DEPLOYMENT_TARGET: 11.0
387+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
388+
NO_LLVM_ASSERTIONS: 1
389+
NO_DEBUG_ASSERTIONS: 1
390+
NO_OVERFLOW_CHECKS: 1
391+
os: macos-14
380392
- name: x86_64-msvc
381393
env:
382394
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"

src/ci/github-actions/ci.yml

+23-15
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ x--expand-yaml-anchors--remove:
9393
<<: *base-job
9494

9595
- &job-macos-m1
96-
os: macos-13-xlarge
96+
os: macos-14
9797
<<: *base-job
9898

9999
- &job-windows-8c
@@ -555,16 +555,14 @@ jobs:
555555
# This target only needs to support 11.0 and up as nothing else supports the hardware
556556
- name: dist-aarch64-apple
557557
env:
558-
SCRIPT: ./x.py dist bootstrap --include-default-paths --stage 2
558+
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin
559559
RUST_CONFIGURE_ARGS: >-
560-
--build=x86_64-apple-darwin
561-
--host=aarch64-apple-darwin
562-
--target=aarch64-apple-darwin
563560
--enable-full-tools
564561
--enable-sanitizers
565562
--enable-profiler
566-
--disable-docs
567563
--set rust.jemalloc
564+
--set llvm.ninja=false
565+
--set rust.lto=thin
568566
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
569567
SELECT_XCODE: /Applications/Xcode_13.4.1.app
570568
USE_XCODE_CLANG: 1
@@ -574,15 +572,25 @@ jobs:
574572
NO_DEBUG_ASSERTIONS: 1
575573
NO_OVERFLOW_CHECKS: 1
576574
DIST_REQUIRE_ALL_TOOLS: 1
577-
# Corresponds to 16K page size
578-
#
579-
# Shouldn't be needed if jemalloc-sys is updated to
580-
# handle this platform like iOS or if we build on
581-
# aarch64-apple-darwin itself.
582-
#
583-
# https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
584-
JEMALLOC_SYS_WITH_LG_PAGE: 14
585-
<<: *job-macos-xl
575+
<<: *job-macos-m1
576+
577+
# This target only needs to support 11.0 and up as nothing else supports the hardware
578+
- name: aarch64-apple
579+
env:
580+
SCRIPT: ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin
581+
RUST_CONFIGURE_ARGS: >-
582+
--enable-sanitizers
583+
--enable-profiler
584+
--set rust.jemalloc
585+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
586+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
587+
USE_XCODE_CLANG: 1
588+
MACOSX_DEPLOYMENT_TARGET: 11.0
589+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
590+
NO_LLVM_ASSERTIONS: 1
591+
NO_DEBUG_ASSERTIONS: 1
592+
NO_OVERFLOW_CHECKS: 1
593+
<<: *job-macos-m1
586594

587595
######################
588596
# Windows Builders #

0 commit comments

Comments
 (0)