Skip to content

Commit

Permalink
ci: generate CLI binary for MacOS ARM (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic authored Apr 30, 2024
1 parent 286b61d commit 9998c6d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ jobs:
matrix:
build:
- linux
- macos
- macos-arm
- macos-intel
- windows
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu

- build: macos
- build: macos-intel
os: macos-latest
target: x86_64-apple-darwin

- build: macos-arm
os: macos-latest
target: aarch64-apple-darwin

- build: windows
os: windows-latest
target: x86_64-pc-windows-msvc
Expand All @@ -46,8 +51,7 @@ jobs:
exit 1
fi
- run: rustup target add x86_64-apple-darwin
if: matrix.build == 'macos'
- run: rustup target add ${{ matrix.target }}

- name: Build
run: cargo build --bin yr --profile release-lto --target ${{ matrix.target }}
Expand Down Expand Up @@ -126,12 +130,6 @@ jobs:
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
if: matrix.build == 'macos'

#- run: rustup toolchain install stable-i686-pc-windows-msvc
# if: matrix.build == 'windows'

#- run: rustup target add i686-pc-windows-msvc
# if: matrix.build == 'windows'

- name: Install Python dependencies
run: pip install -U setuptools wheel twine cibuildwheel platformdirs

Expand Down

0 comments on commit 9998c6d

Please sign in to comment.