-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (43 loc) · 1.88 KB
/
main.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
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
env:
PREFIX: "/usr/local/"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-13]
#os: [ubuntu-latest, macOS-11]
steps:
- uses: actions/checkout@v4
# Step to install xz on macOS before anything else
- name: Install xz on macOS
if: matrix.os == 'macOS-13'
run: brew install xz
- name: Install project dependencies
run: which python; python -m pip install -r requirements.txt
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.13" # >=3.8 <3.12
CIBW_SKIP: "*-win32 *-manylinux_i686 pp* *musl* " # cp311-macosx*
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "auto"
CIBW_BEFORE_ALL_MACOS: |
bash ci/osx-deps
CIBW_BEFORE_ALL_LINUX: bash ci/manylinux-deps
CIBW_BEFORE_BUILD_MACOS: |
ln -s /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/longintrepr.h /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
which python3
python3 -m pip install -r requirements.txt
CIBW_BEFORE_BUILD_LINUX: pip install -r requirements.txt
CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-wheel --require-archs x86_64 -w {dest_dir} -v {wheel} --require-target-macos-version 13.0
CIBW_TEST_SKIP: "*-macosx_arm64"
CIBW_TEST_REQUIRES: cython click>=8.0 numpy scipy pandas pysam>=0.22.0 networkx>=2.4 scikit-learn>=0.22 sortedcontainers lightgbm
CIBW_TEST_COMMAND: dysgu test --verbose
- uses: actions/upload-artifact@v4
with:
name: wheelhouse-${{ matrix.os }}-${{ github.run_id }}
path: ./wheelhouse/*.whl