Skip to content

Commit 3148b32

Browse files
committed
Use GitHub Actions M1 builder for aarch64-apple-darwin
1 parent 2e5a9dd commit 3148b32

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
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"

src/ci/github-actions/ci.yml

Lines changed: 6 additions & 14 deletions
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
@@ -525,15 +529,11 @@ jobs:
525529
# This target only needs to support 11.0 and up as nothing else supports the hardware
526530
- name: dist-aarch64-apple
527531
env:
528-
SCRIPT: ./x.py dist bootstrap --include-default-paths --stage 2
532+
SCRIPT: ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin
529533
RUST_CONFIGURE_ARGS: >-
530-
--build=x86_64-apple-darwin
531-
--host=aarch64-apple-darwin
532-
--target=aarch64-apple-darwin
533534
--enable-full-tools
534535
--enable-sanitizers
535536
--enable-profiler
536-
--disable-docs
537537
--set rust.jemalloc
538538
--set llvm.ninja=false
539539
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
@@ -545,15 +545,7 @@ jobs:
545545
NO_DEBUG_ASSERTIONS: 1
546546
NO_OVERFLOW_CHECKS: 1
547547
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
548+
<<: *job-macos-m1
557549

558550
######################
559551
# Windows Builders #

0 commit comments

Comments
 (0)