From 65585a4803d894a0a9043f3efb3aef02b480450c Mon Sep 17 00:00:00 2001 From: Levi Nelson <54561718+LeviticusNelson@users.noreply.github.com> Date: Sun, 5 Nov 2023 09:55:35 -0800 Subject: [PATCH] init: macOS apple silicon runner --- .github/workflows/mac.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 89a980c42c5..b39209e9f9c 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -8,29 +8,28 @@ on: jobs: test: # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources - # macOS Catalina 10.15 - runs-on: macos-latest + # https://docs.github.com/en/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners + # macOS Ventura 13 Apple Silicon + runs-on: macos-latest-xlarge name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }}) env: CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }} strategy: fail-fast: false matrix: - target: [ - x86_64-apple-darwin, - ] + target: [x86_64-apple-darwin, aarch64-apple-darwin] cfg_release_channel: [nightly, stable] steps: - - name: checkout - uses: actions/checkout@v3 + - name: checkout + uses: actions/checkout@v3 - # Run build - - name: install rustup - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh - sh rustup-init.sh -y --default-toolchain none - rustup target add ${{ matrix.target }} + # Run build + - name: install rustup + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh + sh rustup-init.sh -y --default-toolchain none + rustup target add ${{ matrix.target }} - - name: Build and Test - run: ./ci/build_and_test.sh + - name: Build and Test + run: ./ci/build_and_test.sh