forked from LeeKamentsky/python-javabridge
-
Notifications
You must be signed in to change notification settings - Fork 14
95 lines (82 loc) · 2.76 KB
/
wheel.yml
File metadata and controls
95 lines (82 loc) · 2.76 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Wheel
on:
workflow_dispatch:
jobs:
build:
strategy:
max-parallel: 4
# let some wheels complete even if others fail
fail-fast: false
matrix:
os: [ubuntu-latest]
#os: [ubuntu-latest, windows-latest, macos-14, macos-15-intel]
#python_version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python_version: ['3.9']
include:
- os: ubuntu-latest
platform_id: manylinux_x86_64
manylinux_image: manylinux2014
#- os: windows-latest
# platform_id: win_amd64
## macos x86_64 (intel)
#- os: macos-15-intel
# platform_id: macosx_x86_64
## macos arm64 (apple silicon)
#- os: macos-14
# platform_id: macosx_arm64
#- python_version: '3.8'
# python: 38
# cibuildwheel: "cibuildwheel<3"
- python_version: '3.9'
python: 39
cibuildwheel: "cibuildwheel<3"
#- python_version: '3.10'
# python: 310
# cibuildwheel: "cibuildwheel<3"
#- python_version: '3.11'
# python: 311
# cibuildwheel: "cibuildwheel<4"
#- python_version: '3.12'
# python: 312
# cibuildwheel: "cibuildwheel<4"
#- python_version: '3.13'
# python: 313
# cibuildwheel: "cibuildwheel<4"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Java JDK
if: ${{ matrix.os != 'ubuntu-latest' }}
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11.0.20+8" # The JDK version to make available on the path.
java-package: jdk
architecture: x64
- name: Setup Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Installation
run:
|
python -m pip install --upgrade pip
pip install "cython<3.0"
pip install "numpy<2"
pip install -e .
- name: Install cibuildwheel
run: python -m pip install "${{ matrix.cibuildwheel }}"
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
CIBW_ARCHS: all
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }}
CIBW_BEFORE_ALL_LINUX: |
yum install -y java-11-openjdk-devel && echo $JAVA_HOME && env
- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: cibw-wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}
path: ./wheelhouse/*.whl