-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (77 loc) · 2.28 KB
/
build.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
name: Build GKLS
on:
push:
branches: [ "main", "dev"]
tags:
- 'v*'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build_wheels_unix:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: False
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Build wheels
env:
# only build CPython-3.9+ and skip 32-bit builds
CIBW_BUILD: cp312-* cp313-*
CIBW_SKIP: "*-manylinux_i686 *-musllinux*"
# use latest build
CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64
CIBW_BUILD_VERBOSITY: 3
run: |
python -m pip install -U pip cibuildwheel
python -m cibuildwheel --output-dir dist
python -m pip install build
python -m build --sdist
ls -R dist
- name: Place wheels in artifacts folder
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: ./dist/*
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "Release ${{ github.ref }}"
files: |
./dist/*
# build-arm-macos:
# runs-on: macos-latest
# needs: build-x86-linux
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# run: |
# brew uninstall python --ignore-dependencies
# brew cleanup python
# python -m pip install --upgrade pip
# python -m pip install build
# - name: Build GKLS
# run: |
# python -m build --sdist --wheel
# - name: Download artifact
# uses: actions/download-artifact@master
# with:
# name: linux-artifact
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# body: "Release ${{ github.ref }}"
# files: |
# dist/*.whl