Skip to content

Commit 9dad482

Browse files
committed
Auto merge of rust-lang#120509 - shepmaster:m1-runners-redux, r=<try>
Re-enable M1 runners on GitHub Actions r? `@ghost`
2 parents f3d71c9 + 10d9abf commit 9dad482

File tree

2 files changed

+55
-29
lines changed

2 files changed

+55
-29
lines changed

.github/workflows/ci.yml

+29-7
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 --set llvm.ninja=false"
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 --set llvm.ninja=false"
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"
@@ -571,10 +583,20 @@ jobs:
571583
strategy:
572584
matrix:
573585
include:
574-
- name: dist-x86_64-linux
586+
- name: dist-aarch64-apple
575587
env:
576-
CODEGEN_BACKENDS: "llvm,cranelift"
577-
os: ubuntu-20.04-16core-64gb
588+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
589+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
590+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
591+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
592+
USE_XCODE_CLANG: 1
593+
MACOSX_DEPLOYMENT_TARGET: 11.0
594+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
595+
NO_LLVM_ASSERTIONS: 1
596+
NO_DEBUG_ASSERTIONS: 1
597+
NO_OVERFLOW_CHECKS: 1
598+
DIST_REQUIRE_ALL_TOOLS: 1
599+
os: macos-14
578600
timeout-minutes: 600
579601
runs-on: "${{ matrix.os }}"
580602
steps:

src/ci/github-actions/ci.yml

+26-22
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
@@ -553,19 +553,17 @@ jobs:
553553
<<: *job-macos-xl
554554

555555
# This target only needs to support 11.0 and up as nothing else supports the hardware
556-
- name: dist-aarch64-apple
556+
- &dist-aarch64-apple
557+
name: dist-aarch64-apple
557558
env:
558-
SCRIPT: ./x.py dist bootstrap --include-default-paths --stage 2
559+
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin
559560
RUST_CONFIGURE_ARGS: >-
560-
--build=x86_64-apple-darwin
561-
--host=aarch64-apple-darwin
562-
--target=aarch64-apple-darwin
563561
--enable-full-tools
564562
--enable-sanitizers
565563
--enable-profiler
566-
--disable-docs
567564
--set rust.jemalloc
568565
--set llvm.ninja=false
566+
--set rust.lto=thin
569567
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
570568
SELECT_XCODE: /Applications/Xcode_13.4.1.app
571569
USE_XCODE_CLANG: 1
@@ -575,15 +573,26 @@ jobs:
575573
NO_DEBUG_ASSERTIONS: 1
576574
NO_OVERFLOW_CHECKS: 1
577575
DIST_REQUIRE_ALL_TOOLS: 1
578-
# Corresponds to 16K page size
579-
#
580-
# Shouldn't be needed if jemalloc-sys is updated to
581-
# handle this platform like iOS or if we build on
582-
# aarch64-apple-darwin itself.
583-
#
584-
# https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
585-
JEMALLOC_SYS_WITH_LG_PAGE: 14
586-
<<: *job-macos-xl
576+
<<: *job-macos-m1
577+
578+
# This target only needs to support 11.0 and up as nothing else supports the hardware
579+
- name: aarch64-apple
580+
env:
581+
SCRIPT: ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin
582+
RUST_CONFIGURE_ARGS: >-
583+
--enable-sanitizers
584+
--enable-profiler
585+
--set rust.jemalloc
586+
--set llvm.ninja=false
587+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
588+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
589+
USE_XCODE_CLANG: 1
590+
MACOSX_DEPLOYMENT_TARGET: 11.0
591+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
592+
NO_LLVM_ASSERTIONS: 1
593+
NO_DEBUG_ASSERTIONS: 1
594+
NO_OVERFLOW_CHECKS: 1
595+
<<: *job-macos-m1
587596

588597
######################
589598
# Windows Builders #
@@ -726,12 +735,7 @@ jobs:
726735
strategy:
727736
matrix:
728737
include:
729-
- &dist-x86_64-linux
730-
name: dist-x86_64-linux
731-
env:
732-
CODEGEN_BACKENDS: llvm,cranelift
733-
<<: *job-linux-16c
734-
738+
- <<: *dist-aarch64-apple
735739

736740
master:
737741
name: master

0 commit comments

Comments
 (0)