-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1 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
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BEFORE_ALL: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version 6.0.416
CIBW_BEFORE_BUILD: >
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 &&
export DOTNET_ROOT=$HOME/.dotnet &&
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools &&
pip install toml GitPython &&
python setup.py msbuild
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}"
with:
package-dir: .
output-dir: dist
config-file: pyproject.toml
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.whl