feat(ci): add M1 macOS builds
This commit is contained in:
parent
9f567f721e
commit
fd56d2a1a7
1 changed files with 14 additions and 1 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -18,6 +18,7 @@ jobs:
|
||||||
- linux musl x64
|
- linux musl x64
|
||||||
- linux musl aarch64
|
- linux musl aarch64
|
||||||
- macos x64
|
- macos x64
|
||||||
|
- macos aarch64
|
||||||
include:
|
include:
|
||||||
- build: linux musl x64
|
- build: linux musl x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
|
@ -31,6 +32,10 @@ jobs:
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
rust: beta
|
rust: beta
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
|
- build: macos aarch64
|
||||||
|
os: macos-latest
|
||||||
|
rust: beta
|
||||||
|
target: aarch64-apple-darwin
|
||||||
steps:
|
steps:
|
||||||
- name: Set release tag
|
- name: Set release tag
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -64,6 +69,14 @@ jobs:
|
||||||
- name: Install wasm-opt
|
- name: Install wasm-opt
|
||||||
run: brew install binaryen
|
run: brew install binaryen
|
||||||
|
|
||||||
|
# Workaround for <https://github.com/actions/virtual-environments/issues/2557>
|
||||||
|
- name: Switch Xcode SDK
|
||||||
|
if: runner.os == 'macos'
|
||||||
|
run: |
|
||||||
|
cat <<EOF >> "$GITHUB_ENV"
|
||||||
|
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
run: cargo make ci-build-release ${{ matrix.target }}
|
run: cargo make ci-build-release ${{ matrix.target }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue