-
Notifications
You must be signed in to change notification settings - Fork 4
216 lines (205 loc) · 6.62 KB
/
builds.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
name: Builds
# TODO: generalize steps
env:
ARTIFACTS_FOLDER: '${{ github.workspace }}/artifacts'
DSS_CAPI_TAG: '0.14.4'
on:
# release:
# types: [created]
push:
jobs:
build_linux_x64:
name: 'Linux x64'
runs-on: ubuntu-latest
strategy:
matrix:
container-image: [
'quay.io/pypa/manylinux_2_28_x86_64',
'quay.io/pypa/manylinux2014_x86_64'
]
container:
image: ${{ matrix.container-image }}
env:
CONDA_SUBDIR: 'linux-64'
CONDA: "/opt/miniconda/"
steps:
- name: 'Checkout'
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_python
cd dss_python
git checkout $GITHUB_SHA
- name: 'Download/extract message catalogs'
run: |
curl -s -L https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_TAG}/messages.tar.gz -o messages.tar.gz
cd dss_python/dss
tar zxf ../../messages.tar.gz
- name: Build wheel
run: |
mkdir -p artifacts
mkdir -p artifacts_raw
bash dss_python/ci/build_linux.sh x64
# - name: Build conda packages
# continue-on-error: true
# run: |
# bash dss_python/ci/build_conda.sh
- name: Try installing the wheel
run: bash dss_python/ci/test_wheel.sh
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/artifacts'
# build_linux_x86:
# name: 'Linux x86'
# runs-on: ubuntu-latest
# env:
# CONDA_SUBDIR: 'linux-32'
# DOCKER_IMAGE: 'pmeira/manylinux_wheel_fpc322_i686'
# steps:
# - name: 'Checkout'
# run: |
# git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY dss_python
# cd dss_python
# git checkout $GITHUB_SHA
# - name: 'Setup Docker'
# run: |
# docker pull $DOCKER_IMAGE
# - name: 'Download/extract message catalogs'
# run: |
# curl -s -L https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_TAG}/messages.tar.gz -o messages.tar.gz
# cd dss_python/dss
# tar zxf ../../messages.tar.gz
# - name: Build wheel
# run: |
# mkdir -p artifacts
# mkdir -p artifacts_raw
# docker run -e GITHUB_SHA -e GITHUB_REF -v "${PWD}:/build" -w /build $DOCKER_IMAGE bash /build/dss_python/ci/build_linux.sh x86
# - name: 'Upload artifacts'
# uses: "actions/upload-artifact@v3"
# with:
# name: 'packages'
# path: '${{ github.workspace }}/artifacts'
build_macos_x64:
name: 'macOS x64'
runs-on: 'macos-11'
env:
SDKROOT: '${{ github.workspace }}/MacOSX10.13.sdk'
PYTHON: python3
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: 'dss_python'
- name: 'Download/extract message catalogs'
run: |
curl -s -L https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_TAG}/messages.tar.gz -o messages.tar.gz
cd dss_python/dss
tar zxf ../../messages.tar.gz
- name: Build wheel
run: |
bash dss_python/ci/build_wheel.sh
# - name: Build conda packages
# continue-on-error: true
# run: |
# sudo chown -R $UID $CONDA
# bash dss_python/ci/build_conda.sh
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/artifacts'
build_macos_arm64:
name: 'macOS ARM64'
runs-on: 'macos-11'
env:
PYTHON: python3
_PYTHON_HOST_PLATFORM: macosx-11.0-arm64
ARCHFLAGS: '-arch arm64'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: 'dss_python'
- name: 'Download/extract message catalogs'
run: |
curl -s -L https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_TAG}/messages.tar.gz -o messages.tar.gz
cd dss_python/dss
tar zxf ../../messages.tar.gz
# - name: 'Download macOS SDK 10.13'
# run: |
# curl -s -L https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz -o macOSsdk.tar.xz
# tar xf macOSsdk.tar.xz
- name: Build wheel
run: |
bash dss_python/ci/build_wheel.sh
# - name: Build conda packages
# continue-on-error: true
# run: |
# sudo chown -R $UID $CONDA
# bash dss_python/ci/build_conda.sh
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/artifacts'
build_win_x64:
name: 'Windows x64'
runs-on: windows-2019
env:
CONDA_SUBDIR: 'win-64'
PYTHON: python
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: 'dss_python'
- name: 'Download/extract message catalogs'
shell: cmd
run: |
"c:\Program Files\Git\mingw64\bin\curl" -s -L https://github.com/dss-extensions/dss_capi/releases/download/%DSS_CAPI_TAG%/messages.zip -o messages.zip
cd dss_python\dss
tar zxf ..\..\messages.zip
- name: Build wheel
shell: bash
run: |
bash dss_python/ci/build_wheel.sh
# - name: Build conda packages
# continue-on-error: true
# shell: bash
# run: |
# bash dss_python/ci/build_conda.sh
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/artifacts'
build_win_x86:
name: 'Windows x86'
runs-on: windows-2019
env:
CONDA_SUBDIR: 'win-32'
PYTHON: python
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: 'dss_python'
- uses: actions/setup-python@v3
with:
python-version: '3.7'
architecture: 'x86'
- name: 'Download/extract message catalogs'
shell: cmd
run: |
"c:\Program Files\Git\mingw64\bin\curl" -s -L https://github.com/dss-extensions/dss_capi/releases/download/%DSS_CAPI_TAG%/messages.zip -o messages.zip
cd dss_python\dss
tar zxf ..\..\messages.zip
- name: Build wheel
shell: bash
run: |
bash dss_python/ci/build_wheel.sh
- name: 'Upload artifacts'
uses: "actions/upload-artifact@v3"
with:
name: 'packages'
path: '${{ github.workspace }}/artifacts'