From 4c480d1fa2d183e2ee00ae46f664afae132a481b Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 9 Dec 2023 12:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20macOS=20=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=89=93=E5=8C=85=E6=88=90=20universal=20#68?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97022a06..81b1965c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,17 @@ jobs: fail-fast: false matrix: platform: [windows-latest, macos-latest] + settings: + - platform: macos-latest + args: "--target universal-apple-darwin" runs-on: ${{ matrix.platform }} steps: - name: Checkout uses: actions/checkout@v3 + - name: Add Rust targets + if: matrix.platform == 'macos-latest' + run: rustup target add aarch64-apple-darwin x86_64-apple-darwin - name: Rust setup uses: dtolnay/rust-toolchain@stable