-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (50 loc) · 1.57 KB
/
build_wheels.yml
File metadata and controls
60 lines (50 loc) · 1.57 KB
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
name: "build wheels"
on:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
wheels:
name: "Build wheels on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
fail-fast: false
steps:
- name: Create packages directory
run: mkdir packages
- uses: actions/checkout@v2
- name: Get nuget packages
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- name: Install nuget packages
run: |
nuget install DHI.DFS -OutputDirectory packages -Source "https://api.nuget.org/v3/index.json"
nuget install DHI.Projections -OutputDirectory packages -Source "https://api.nuget.org/v3/index.json"
- name: Install packages into directory
shell: cmd
run: .\BuildNativeBin.bat
- name: "Install Python 3.7"
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: "Build wheels"
uses: joerick/cibuildwheel@v1.11.0
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.5"
CIBW_SKIP: pp*
# Build only on 64-bit architectures.
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_WINDOWS: auto64
# Test the wheels.
CIBW_TEST_COMMAND: pytest --pyargs gsd -v --log-level=DEBUG
CIBW_TEST_REQUIRES: pytest
- name: "Upload wheels"
uses: actions/upload-artifact@v2.2.3
with:
name: dist
path: wheelhouse/*.whl