Skip to content

Commit b4c0c01

Browse files
committed
WIP: osx ci
1 parent 6e12110 commit b4c0c01

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/macos.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: macos-ci
2+
on:
3+
push:
4+
branches:
5+
- osx-arm64-ci
6+
7+
jobs:
8+
test:
9+
name: test
10+
runs-on: [self-hosted, ARM64, macOS]
11+
12+
timeout-minutes: 600
13+
# strategy:
14+
# matrix:
15+
# os: [macos-latest, macos-11]
16+
steps:
17+
- name: disable git crlf conversion
18+
run: git config --global core.autocrlf false
19+
20+
- name: checkout the source code
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 2
24+
25+
- name: collect CPU statistics
26+
run: src/ci/scripts/collect-cpu-stats.sh
27+
28+
- name: show the current environment
29+
run: src/ci/scripts/dump-environment.sh
30+
31+
- name: install sccache
32+
run: src/ci/scripts/install-sccache.sh
33+
34+
- name: ensure the build happens on a partition with enough space
35+
run: src/ci/scripts/symlink-build-dir.sh
36+
37+
- name: checkout submodules
38+
run: src/ci/scripts/checkout-submodules.sh
39+
40+
- name: ensure line endings are correct
41+
run: src/ci/scripts/verify-line-endings.sh
42+
43+
- name: run the build
44+
run: src/ci/scripts/run-build-from-ci.sh
45+
env:
46+
SCRIPT: "./x.py --stage 2 test"
47+
RUST_CONFIGURE_ARGS: --build=aarch64-apple-darwin --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set build.print-step-timings --enable-verbose-tests
48+
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
49+
MACOSX_DEPLOYMENT_TARGET: 10.8
50+
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
51+
NO_LLVM_ASSERTIONS: 1
52+
NO_DEBUG_ASSERTIONS: 1
53+
CC: clang
54+
CXX: clang++

0 commit comments

Comments
 (0)