-
Notifications
You must be signed in to change notification settings - Fork 35
72 lines (58 loc) · 2 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build
on: [push]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Window 64 bit
- os: windows-latest
platform_id: win_amd64
# Linux 64 bit
- os: ubuntu-latest
platform_id: manylinux_x86_64
manylinux_image: manylinux_2_28
# Many linux 2014 dosen't work due to an issue in GLEW:
# https://github.com/glfw/glfw/issues/2139
# manylinux_image: manylinux2014
# MacOS x86_64
- os: macos-12
platform_id: macosx_x86_64
# MacOS arm64
- os: macos-14
platform_id: macosx_arm64
# os: [ubuntu-latest, windows-latest, macos-13, macos-14]
# os: [ubuntu-latest, windows-latest, macos-13, macos-14]
# python: [3.7, 3.8, 3.9, 3.10]
# python: [3.7]
steps:
- uses: actions/checkout@v4
with:
submodules: true
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.0
# Install Linux dependencies
# - name: Update deb repository
# if: ${{ matrix.platform_id == 'manylinux_x86_64' }}
# run: sudo apt-get update
# - name: Install deb dependencies
# if: ${{ matrix.platform_id == 'manylinux_x86_64' }}
# run: sudo apt-get install -y xorg-dev libglu1-mesa-dev libglew-dev xvfb xrandr-dev
# Build wheels
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
# Upload wheels
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl