forked from peter-ch/MultiNEAT
-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.32 KB
/
build_wheels.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
name: Build
on:
push:
tags:
- '*' # Will run when any tag is pushed
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, macos-12,ubuntu-22.04]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.2
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* # build for 3.8 and higher
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*.whl
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: build_wheels
environment:
name: release
url: https://pypi.org/p/multineat
permissions:
id-token: write
steps:
- name: Download dist artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1