Skip to content

Commit 38ed8a8

Browse files
committed
Auto merge of #3433 - RalfJung:m1, r=RalfJung
experiment with macOS M1 runners Try running our macOS CI on the new free M1 runners. This would mean that our 3 jobs run 3 different OSes and 3 different host CPU architectures. :)
2 parents 50bb0a6 + 9e7ff74 commit 38ed8a8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
include:
2525
- os: ubuntu-latest
2626
host_target: x86_64-unknown-linux-gnu
27-
- os: macos-latest
28-
host_target: x86_64-apple-darwin
27+
- os: macos-14
28+
host_target: aarch64-apple-darwin
2929
- os: windows-latest
3030
host_target: i686-pc-windows-msvc
3131
runs-on: ${{ matrix.os }}
@@ -56,8 +56,8 @@ jobs:
5656
# contains package information of crates installed via `cargo install`.
5757
~/.cargo/.crates.toml
5858
~/.cargo/.crates2.json
59-
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}
60-
restore-keys: ${{ runner.os }}-cargo-reset20230315
59+
key: ${{ runner.os }}-cargo-reset20240315-${{ hashFiles('**/Cargo.lock') }}
60+
restore-keys: ${{ runner.os }}-cargo-reset20240315
6161

6262
- name: Install rustup-toolchain-install-master
6363
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -98,11 +98,12 @@ jobs:
9898
with:
9999
path: |
100100
# Taken from <https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci>.
101-
~/.cargo/bin
101+
# Cache package/registry information
102102
~/.cargo/registry/index
103103
~/.cargo/registry/cache
104104
~/.cargo/git/db
105-
# contains package information of crates installed via `cargo install`.
105+
# Cache installed binaries
106+
~/.cargo/bin
106107
~/.cargo/.crates.toml
107108
~/.cargo/.crates2.json
108109
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}

ci/ci.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ case $HOST_TARGET in
135135
# Extra tier 1
136136
MIRI_TEST_TARGET=i686-unknown-linux-gnu run_tests
137137
MIRI_TEST_TARGET=aarch64-unknown-linux-gnu run_tests
138+
MIRI_TEST_TARGET=x86_64-apple-darwin run_tests
138139
MIRI_TEST_TARGET=i686-pc-windows-gnu run_tests
139140
MIRI_TEST_TARGET=x86_64-pc-windows-gnu run_tests
140141
# Extra tier 2
@@ -150,8 +151,8 @@ case $HOST_TARGET in
150151
# Custom target JSON file
151152
MIRI_TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std
152153
;;
153-
x86_64-apple-darwin)
154-
# Host
154+
aarch64-apple-darwin)
155+
# Host (tier 2)
155156
GC_STRESS=1 MIR_OPT=1 MANY_SEEDS=64 TEST_BENCH=1 CARGO_MIRI_ENV=1 run_tests
156157
# Extra tier 1
157158
MIRI_TEST_TARGET=x86_64-pc-windows-msvc CARGO_MIRI_ENV=1 run_tests

0 commit comments

Comments
 (0)