Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: generate CLI binary for MacOS ARM #102

Merged
merged 7 commits into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading