Auto merge of #117454 - shepmaster:github-actions-m1-tests, r=GuillaumeGomez,onur-ozkan
Run tests in CI for aarch64-apple-darwin r? `@ghost`
This commit is contained in:
commit
57fb1e643a
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -106,6 +106,9 @@ jobs:
|
|||||||
- name: install clang
|
- name: install clang
|
||||||
run: src/ci/scripts/install-clang.sh
|
run: src/ci/scripts/install-clang.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
|
- name: install tidy
|
||||||
|
run: src/ci/scripts/install-tidy.sh
|
||||||
|
if: success() && !env.SKIP_JOB
|
||||||
- name: install WIX
|
- name: install WIX
|
||||||
run: src/ci/scripts/install-wix.sh
|
run: src/ci/scripts/install-wix.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
@ -370,6 +373,19 @@ jobs:
|
|||||||
NO_OVERFLOW_CHECKS: 1
|
NO_OVERFLOW_CHECKS: 1
|
||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
os: macos-13-xlarge
|
os: macos-13-xlarge
|
||||||
|
- name: aarch64-apple
|
||||||
|
env:
|
||||||
|
SCRIPT: "./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
|
||||||
|
RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
|
||||||
|
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
|
||||||
|
SELECT_XCODE: /Applications/Xcode_13.4.1.app
|
||||||
|
USE_XCODE_CLANG: 1
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: 11.0
|
||||||
|
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
||||||
|
NO_LLVM_ASSERTIONS: 1
|
||||||
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
|
os: macos-13-xlarge
|
||||||
- name: x86_64-msvc
|
- name: x86_64-msvc
|
||||||
env:
|
env:
|
||||||
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
|
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
|
||||||
@ -483,6 +499,9 @@ jobs:
|
|||||||
- name: install clang
|
- name: install clang
|
||||||
run: src/ci/scripts/install-clang.sh
|
run: src/ci/scripts/install-clang.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
|
- name: install tidy
|
||||||
|
run: src/ci/scripts/install-tidy.sh
|
||||||
|
if: success() && !env.SKIP_JOB
|
||||||
- name: install WIX
|
- name: install WIX
|
||||||
run: src/ci/scripts/install-wix.sh
|
run: src/ci/scripts/install-wix.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
@ -607,6 +626,9 @@ jobs:
|
|||||||
- name: install clang
|
- name: install clang
|
||||||
run: src/ci/scripts/install-clang.sh
|
run: src/ci/scripts/install-clang.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
|
- name: install tidy
|
||||||
|
run: src/ci/scripts/install-tidy.sh
|
||||||
|
if: success() && !env.SKIP_JOB
|
||||||
- name: install WIX
|
- name: install WIX
|
||||||
run: src/ci/scripts/install-wix.sh
|
run: src/ci/scripts/install-wix.sh
|
||||||
if: success() && !env.SKIP_JOB
|
if: success() && !env.SKIP_JOB
|
||||||
|
@ -173,6 +173,10 @@ x--expand-yaml-anchors--remove:
|
|||||||
run: src/ci/scripts/install-clang.sh
|
run: src/ci/scripts/install-clang.sh
|
||||||
<<: *step
|
<<: *step
|
||||||
|
|
||||||
|
- name: install tidy
|
||||||
|
run: src/ci/scripts/install-tidy.sh
|
||||||
|
<<: *step
|
||||||
|
|
||||||
- name: install WIX
|
- name: install WIX
|
||||||
run: src/ci/scripts/install-wix.sh
|
run: src/ci/scripts/install-wix.sh
|
||||||
<<: *step
|
<<: *step
|
||||||
@ -565,6 +569,25 @@ jobs:
|
|||||||
DIST_REQUIRE_ALL_TOOLS: 1
|
DIST_REQUIRE_ALL_TOOLS: 1
|
||||||
<<: *job-macos-m1
|
<<: *job-macos-m1
|
||||||
|
|
||||||
|
# This target only needs to support 11.0 and up as nothing else supports the hardware
|
||||||
|
- name: aarch64-apple
|
||||||
|
env:
|
||||||
|
SCRIPT: ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin
|
||||||
|
RUST_CONFIGURE_ARGS: >-
|
||||||
|
--enable-sanitizers
|
||||||
|
--enable-profiler
|
||||||
|
--set rust.jemalloc
|
||||||
|
--set llvm.ninja=false
|
||||||
|
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
|
||||||
|
SELECT_XCODE: /Applications/Xcode_13.4.1.app
|
||||||
|
USE_XCODE_CLANG: 1
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: 11.0
|
||||||
|
MACOSX_STD_DEPLOYMENT_TARGET: 11.0
|
||||||
|
NO_LLVM_ASSERTIONS: 1
|
||||||
|
NO_DEBUG_ASSERTIONS: 1
|
||||||
|
NO_OVERFLOW_CHECKS: 1
|
||||||
|
<<: *job-macos-m1
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Windows Builders #
|
# Windows Builders #
|
||||||
######################
|
######################
|
||||||
|
24
src/ci/scripts/install-tidy.sh
Executable file
24
src/ci/scripts/install-tidy.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This script downloads and installs the tidy binary from Homebrew.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
||||||
|
|
||||||
|
# Only the macOS arm64/aarch64 GitHub Actions runner needs to have tidy
|
||||||
|
# installed; other platforms have it preinstalled.
|
||||||
|
|
||||||
|
if isMacOS; then
|
||||||
|
platform=$(uname -m)
|
||||||
|
case $platform in
|
||||||
|
x86_64)
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
brew install tidy-html5
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "unsupported architecture: ${platform}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
fi
|
@ -1,7 +1,7 @@
|
|||||||
// aux-build:panic-handler.rs
|
// aux-build:panic-handler.rs
|
||||||
// compile-flags: --document-private-items
|
// compile-flags: --document-private-items
|
||||||
// build-pass
|
// build-pass
|
||||||
// ignore-windows
|
// only-linux
|
||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user