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

github/workflows/cibuildwheel.yml: Add ubuntu aarch64 #196

Merged
merged 24 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f6911bb
github/workflows/cibuildwheel.yml: Add ubuntu arm64
rbange Mar 18, 2024
e82a924
Change architecture from arm64 to aarch64
rbange Mar 18, 2024
0d723a2
Merge branch 'coin-or:master' into patch-1
rbange Mar 27, 2024
7d63f1a
Update cibuildwheel.yml to setup qemu on linux runner
rbange Mar 27, 2024
55bb63e
Update cibuildwheel.yml to use latest artifact actions
rbange Mar 27, 2024
278c6ac
Set build platform manually on `aarch64`
tkralphs Apr 29, 2024
98ddb10
Revert action version update
rbange Apr 30, 2024
d78261a
Revert action version bump.
rbange Apr 30, 2024
6d4b752
Print contents of config_args
tkralphs Apr 30, 2024
377424d
See if setting build platform manually is going to work
tkralphs May 1, 2024
80c1145
Try different build specification
tkralphs May 1, 2024
6a63447
One more try
tkralphs May 2, 2024
9619ca6
Undo debugging
tkralphs May 2, 2024
a7047e9
Try quotes
tkralphs May 2, 2024
4ccf777
Debugging output
tkralphs May 2, 2024
d5d26e7
Set environment variable
tkralphs May 2, 2024
dd8fa48
Merge remote-tracking branch 'upstream/master' into patch-1
mkoeppe Jun 24, 2024
f0b45ab
pyproject.toml (tool.cibuildwheel): Use 'uname -m' to determine arch
mkoeppe Jun 24, 2024
32ba245
.github/workflows/cibuildwheel.yml: Update macOS runners
mkoeppe Jun 24, 2024
4ab0ce9
.github/workflows/cibuildwheel.yml: No qemu for x86_64, i686
mkoeppe Jun 24, 2024
394242f
.github/workflows/cibuildwheel.yml: Cancel previous workflow runs
mkoeppe Jun 24, 2024
22dc6c2
pyproject.toml (tool.cibuildwheel): Skip failing pp39-manylinux_x86_6…
mkoeppe Jun 24, 2024
fb2724b
.github/workflows/cibuildwheel.yml: Upgrade cibuildwheel to 2.19.1
mkoeppe Jun 24, 2024
a895cfc
pyproject.toml (tool.cibuildwheel): Skip failing pp39-manylinux_aarch…
mkoeppe Jun 24, 2024
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
19 changes: 16 additions & 3 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types:
- published

concurrency:
# Cancel previous runs of this workflow for the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}, arch ${{ matrix.arch }}
Expand All @@ -23,18 +28,26 @@ jobs:
arch: x86_64
- os: ubuntu-latest
arch: i686
- os: ubuntu-latest
arch: aarch64
- os: macos-13
arch: x86_64
- os: macos-latest
arch: auto
- os: macos-14
arch: arm64
env:
CIBW_ARCHS: ${{ matrix.arch }}

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
if: runner.os == 'Linux' && matrix.arch != 'x86_64' && matrix.arch != 'i686'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.19.1

- uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ build-backend = "setuptools.build_meta"
# Use --no-third-party to avoid linking in GLPK.
# The resulting binary would not be distributable.
before-all = """
set -x
apt-get install --yes wget || yum install -y wget || brew install bash coreutils
wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
sed -i.bak '/invoke_make/s/install/-j1 install/' coinbrew
chmod +x coinbrew
case "$CIBW_ARCHS" in
arm64) config_args='--build=arm-apple-darwin';;
case "$(uname -m)" in
arm64) config_args="--build=arm-apple-darwin";;
aarch64) config_args="--build=aarch64-unknown-linux-gnu";;
esac
eval ./coinbrew build Cbc@2.10.11 --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 $config_args || echo ignoring errors
./coinbrew fetch Cbc@2.10.11 --no-third-party && eval ./coinbrew build Cbc --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 $config_args || (cat build/Data/Sample/1.2.12/config.log; echo ignoring errors)
"""
environment = { PATH="$(pwd)/local/bin:$PATH", LD_LIBRARY_PATH="$(pwd)/local/lib:$LD_LIBRARY_PATH", PKG_CONFIG_PATH="$(pwd)/local/lib/pkgconfig:$PKG_CONFIG_PATH" }
skip = ["pp*-macosx*", "*-musllinux*", "pp31*-*", "pp*-*i686", "cp312-*i686"]
environment = { PATH="$(pwd)/local/bin:$PATH", LD_LIBRARY_PATH="$(pwd)/local/lib:$LD_LIBRARY_PATH", PKG_CONFIG_PATH="$(pwd)/local/lib/pkgconfig:$PKG_CONFIG_PATH", CIBW_ARCHS="$CIBW_ARCHS" }
skip = ["pp*-macosx*", "*-musllinux*", "pp31*-*", "pp*-*i686", "pp39-manylinux*", "cp312-*i686"]
Loading