Build CLI for macOS ARM64
This commit is contained in:
parent
10f76c2c9e
commit
9dc1bb07c9
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted-linux-arm64]
|
||||
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted-linux-arm64, self-hosted-macos-arm64]
|
||||
include:
|
||||
- os: macos-11.0
|
||||
ARCH: macos-x86_64
|
||||
|
@ -29,6 +29,10 @@ jobs:
|
|||
ARCH: linux-arm64
|
||||
MIME: application/octet-stream
|
||||
EXT: ''
|
||||
- os: self-hosted-macos-arm64
|
||||
ARCH: macos-arm64
|
||||
MIME: application/octet-stream
|
||||
EXT: ''
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
|
@ -43,6 +47,7 @@ jobs:
|
|||
run: echo ::set-output name=FILE::${{ steps.version.outputs.VERSION }}-${{ matrix.ARCH }}${{ matrix.EXT }}
|
||||
|
||||
- name: Set up Rust
|
||||
if: runner.name != 'macos-arm64'
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
@ -54,6 +59,7 @@ jobs:
|
|||
run: .\.github\workflows\gcc.ps1
|
||||
|
||||
- name: Set up Go
|
||||
if: runner.name != 'macos-arm64'
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1.14.0'
|
||||
|
|
|
@ -103,6 +103,7 @@ jobs:
|
|||
else
|
||||
pathToPython="$(which python)"
|
||||
fi
|
||||
# On macOS ARM64 this may emit a warning like "Couldn't find the symbol `PyInit_minify_html_core` in the native library. Python will fail to import this module." Ignore this message.
|
||||
maturin build --release --strip -i "$pathToPython"
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
twine upload target/wheels/*
|
||||
|
|
Loading…
Reference in New Issue