-
Notifications
You must be signed in to change notification settings - Fork 4
142 lines (142 loc) · 4.32 KB
/
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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: wheels
on:
push:
branches:
- 'wheel/**'
jobs:
build_linux_wheels:
name: build linux wheels
runs-on: ubuntu-20.04
env:
PY_VERS: cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312
steps:
- uses: actions/checkout@v2
- name: set up container
run: |
docker create --name linux_build -i -v /:/host quay.io/pypa/manylinux2014_x86_64:latest /bin/bash
docker cp . linux_build:/cryptomite/
- name: run build
run: |
docker start linux_build
docker exec -e PY_VERS="${PY_VERS}" linux_build /bin/bash -c "/cryptomite/.github/workflows/linuxbuildwheels"
mkdir wheelhouse
docker cp linux_build:/cryptomite/audited/. wheelhouse/
- uses: actions/upload-artifact@v2
with:
name: linux_wheels
path: wheelhouse/
build_macos_wheels:
name: build macos wheels
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: set up python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: build wheel (3.8)
run: .github/workflows/macosbuildwheel
- name: set up python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: build wheel (3.9)
run: .github/workflows/macosbuildwheel
- name: set up python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: build wheel (3.10)
run: .github/workflows/macosbuildwheel
- name: set up python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: build wheel (3.11)
run: .github/workflows/macosbuildwheel
- name: set up python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: build wheel (3.12)
run: .github/workflows/macosbuildwheel
- uses: actions/upload-artifact@v2
with:
name: macos_wheels
path: wheelhouse/
# build_macos_m1_wheels:
# name: build macos m1 wheels
# runs-on: [self-hosted, macos, M1]
# defaults:
# run:
# shell: "/usr/bin/arch -arch arm64e /bin/bash {0}"
# steps:
# - uses: actions/checkout@v2
# - name: build wheel (3.8)
# run: |
# eval "$(pyenv init -)"
# pyenv shell tket-3.8
# .github/workflows/macosbuildwheel
# - name: build wheel (3.9)
# run: |
# eval "$(pyenv init -)"
# pyenv shell tket-3.9
# .github/workflows/macosbuildwheel
# - name: build wheel (3.10)
# run: |
# eval "$(pyenv init -)"
# pyenv shell tket-3.10
# .github/workflows/macosbuildwheel
# - uses: actions/upload-artifact@v2
# with:
# name: macos_m1_wheels
# path: wheelhouse/
build_windows_wheels:
name: build windows wheels
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: set up python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: build wheel (3.8)
run: |
python -m pip install -U pip wheel scikit-build
python setup.py bdist_wheel -d "${{ github.workspace }}/wheelhouse"
- name: set up python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: build wheel (3.9)
run: |
python -m pip install -U pip wheel scikit-build
python setup.py bdist_wheel -d "${{ github.workspace }}/wheelhouse"
- name: set up python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: build wheel (3.10)
run: |
python -m pip install -U pip wheel scikit-build
python setup.py bdist_wheel -d "${{ github.workspace }}/wheelhouse"
- name: set up python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: build wheel (3.11)
run: |
python -m pip install -U pip wheel scikit-build
python setup.py bdist_wheel -d "${{ github.workspace }}/wheelhouse"
- name: set up python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: build wheel (3.12)
run: |
python -m pip install -U pip wheel scikit-build
python setup.py bdist_wheel -d "${{ github.workspace }}/wheelhouse"
- uses: actions/upload-artifact@v2
with:
name: windows_wheels
path: wheelhouse/