-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.17 KB
/
test.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
name: Build
on:
- push
- pull_request
jobs:
wheel-linux-x86_64:
name: Build Linux wheels (x86-64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build manylinux wheels
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ARCHS: x86_64
# CIBW_BUILD: '*-manylinux_x86_64'
CIBW_BUILD: 'cp312-manylinux_x86_64' # FIXME: for test only
CIBW_BUILD_VERBOSITY: 2
with:
output-dir: dist
- uses: actions/upload-artifact@v4
with:
name: wheels-manylinux_x86_64
path: dist/*
sdist:
runs-on: ubuntu-latest
name: Build source distribution
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build source distribution
run: python -m build -s .
- name: Store built source distribution
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*