From 15914b54d837db36cac020f140c9caed4116af57 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 31 Jan 2024 13:05:08 +0000 Subject: [PATCH] Switch to M1 runner for macOS builds (#1472) --- .github/workflows/build_macos.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_macos.yaml b/.github/workflows/build_macos.yaml index c285f2e..7f122b5 100644 --- a/.github/workflows/build_macos.yaml +++ b/.github/workflows/build_macos.yaml @@ -29,7 +29,7 @@ on: description: "The URL to which the output will be deployed." jobs: build: - runs-on: macos-latest + runs-on: macos-14 # M1 environment: ${{ inputs.sign && 'packages.element.io' || '' }} steps: - uses: actions/checkout@v4 @@ -52,6 +52,12 @@ jobs: rustup toolchain install stable --profile minimal --no-self-update rustup default stable rustup target add aarch64-apple-darwin + rustup target add x86_64-apple-darwin + + # M1 macos-14 comes without Python preinstalled + - uses: actions/setup-python@v5 + with: + python-version: "3.12" - uses: actions/setup-node@v4 with: