-
Notifications
You must be signed in to change notification settings - Fork 28
90 lines (79 loc) · 2.16 KB
/
cibuildwheel.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Build CI wheels
on:
push:
branches:
- master
- rls-*
tags:
- v*
pull_request:
branches:
- master
- rls-*
permissions:
contents: read
jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-latest
outputs:
SDIST_NAME: ${{ steps.sdist.outputs.SDIST_NAME }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: 3.11
- name: Install dependencies
run: python -m pip install wheel build setuptools
- name: Build sdist
run: |
python -m build -s
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/jupedsim-*.tar.gz
if-no-files-found: error
build_wheels:
needs: build_sdist
name: Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }}
runs-on: ${{ matrix.os }}
env:
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
delvewheel repair -w {dest_dir} {wheel}
CIBW_CONFIG_SETTINGS: setup-args="--vsenv"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
MACOSX_DEPLOYMENT_TARGET: "10.12"
strategy:
matrix:
include:
- os: ubuntu-20.04
cibw_archs: "x86_64"
cibw_build: "cp310-*, cp311-*"
- os: windows-latest
cibw_archs: "auto64"
cibw_build: "cp310-*, cp311-*"
- os: macos-11
cibw_archs: "x86_64 arm64"
cibw_build: "cp310-*, cp311-*"
steps:
- name: Download sdist
uses: actions/download-artifact@v3
with:
name: sdist
path: dist/
- name: Build wheels for CPython ${{ matrix.cibw_build }}
uses: pypa/[email protected]
with:
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
env:
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_ARCHS: ${{ matrix.cibw_archs }}
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
if-no-files-found: error