Skip to content

Commit

Permalink
Set suitable targets for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Mar 26, 2024
1 parent b20d336 commit e6c987f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cli-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,20 @@ jobs:
python maintainer/install-lhapdf.py
- name: Build wheels
run: |
case ${{ matrix.target }} in
aarch64)
TARGET="aarch64-apple-darwin"
;;
x86_64)
TARGET="x86_64-apple-darwin"
;;
*)
exit 1
esac
# `--find-interpreter` is needed to generate wheels for
# *all* Python versions
maturin build --release --out dist --find-interpreter \
--manifest-path pineappl_cli/Cargo.toml
--target $TARGET --manifest-path pineappl_cli/Cargo.toml
- name: Patch wheels
run: |
delocate-wheel dist/*
Expand Down

0 comments on commit e6c987f

Please sign in to comment.