👷 macOS 平台打包成 universal #68

This commit is contained in:
BTMuli
2023-12-09 12:39:50 +08:00
parent 4880e6bb8e
commit 4c480d1fa2

View File

@@ -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