Skip to content

Commit 4ea6801

Browse files
committed
Auto merge of #116368 - shepmaster:github-actions-m1, r=<try>
Use GitHub Actions M1 builder for aarch64-apple-darwin r? `@ghost`
2 parents 2e5a9dd + 1436467 commit 4ea6801

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

.github/workflows/ci.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ jobs:
347347
os: macos-13
348348
- name: dist-aarch64-apple
349349
env:
350-
SCRIPT: "./x.py dist bootstrap --include-default-paths --stage 2"
351-
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"
350+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
351+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
352352
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
353353
SELECT_XCODE: /Applications/Xcode_13.4.1.app
354354
USE_XCODE_CLANG: 1
@@ -358,8 +358,7 @@ jobs:
358358
NO_DEBUG_ASSERTIONS: 1
359359
NO_OVERFLOW_CHECKS: 1
360360
DIST_REQUIRE_ALL_TOOLS: 1
361-
JEMALLOC_SYS_WITH_LG_PAGE: 14
362-
os: macos-13
361+
os: macos-13-xlarge
363362
- name: x86_64-msvc
364363
env:
365364
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
@@ -546,9 +545,20 @@ jobs:
546545
strategy:
547546
matrix:
548547
include:
549-
- name: dist-x86_64-linux
550-
os: ubuntu-20.04-16core-64gb
551-
env: {}
548+
- name: dist-aarch64-apple
549+
env:
550+
SCRIPT: "./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
551+
RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
552+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
553+
SELECT_XCODE: /Applications/Xcode_13.4.1.app
554+
USE_XCODE_CLANG: 1
555+
MACOSX_DEPLOYMENT_TARGET: 11.0
556+
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
557+
NO_LLVM_ASSERTIONS: 1
558+
NO_DEBUG_ASSERTIONS: 1
559+
NO_OVERFLOW_CHECKS: 1
560+
DIST_REQUIRE_ALL_TOOLS: 1
561+
os: macos-13-xlarge
552562
timeout-minutes: 600
553563
runs-on: "${{ matrix.os }}"
554564
steps:

src/ci/github-actions/ci.yml

+9-18
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ x--expand-yaml-anchors--remove:
9191
os: macos-13 # We use the standard runner for now
9292
<<: *base-job
9393

94+
- &job-macos-m1
95+
os: macos-13-xlarge
96+
<<: *base-job
97+
9498
- &job-windows-8c
9599
os: windows-2019-8core-32gb
96100
<<: *base-job
@@ -523,17 +527,14 @@ jobs:
523527
<<: *job-macos-xl
524528

525529
# This target only needs to support 11.0 and up as nothing else supports the hardware
526-
- name: dist-aarch64-apple
530+
- &dist-aarch64-apple
531+
name: dist-aarch64-apple
527532
env:
528-
SCRIPT: ./x.py dist bootstrap --include-default-paths --stage 2
533+
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin
529534
RUST_CONFIGURE_ARGS: >-
530-
--build=x86_64-apple-darwin
531-
--host=aarch64-apple-darwin
532-
--target=aarch64-apple-darwin
533535
--enable-full-tools
534536
--enable-sanitizers
535537
--enable-profiler
536-
--disable-docs
537538
--set rust.jemalloc
538539
--set llvm.ninja=false
539540
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
@@ -545,15 +546,7 @@ jobs:
545546
NO_DEBUG_ASSERTIONS: 1
546547
NO_OVERFLOW_CHECKS: 1
547548
DIST_REQUIRE_ALL_TOOLS: 1
548-
# Corresponds to 16K page size
549-
#
550-
# Shouldn't be needed if jemalloc-sys is updated to
551-
# handle this platform like iOS or if we build on
552-
# aarch64-apple-darwin itself.
553-
#
554-
# https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
555-
JEMALLOC_SYS_WITH_LG_PAGE: 14
556-
<<: *job-macos-xl
549+
<<: *job-macos-m1
557550

558551
######################
559552
# Windows Builders #
@@ -695,9 +688,7 @@ jobs:
695688
strategy:
696689
matrix:
697690
include:
698-
- &dist-x86_64-linux
699-
name: dist-x86_64-linux
700-
<<: *job-linux-16c
691+
- <<: *dist-aarch64-apple
701692

702693
master:
703694
name: master

0 commit comments

Comments
 (0)