Skip to content

Commit 20d44a7

Browse files
committed
ENH: Add Python Packages GitHub Action
1 parent 4d1eeee commit 20d44a7

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Python Packages
2+
3+
on: [push]
4+
5+
jobs:
6+
Linux:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: Fetch build script
13+
run: |
14+
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh -O
15+
chmod u+x dockcross-manylinux-download-cache-and-build-module-wheels.sh
16+
17+
- name: Build Python packages
18+
run: |
19+
export ITK_PACKAGE_VERSION=v5.1rc03
20+
./dockcross-manylinux-download-cache-and-build-module-wheels.sh
21+
22+
- name: Upload wheel artifact
23+
uses: actions/upload-artifact@v1
24+
with:
25+
name: LinuxWheels
26+
path: dist
27+
28+
MacOS:
29+
runs-on: macos-10.15
30+
31+
steps:
32+
- uses: actions/checkout@v1
33+
34+
- name: Fetch build script
35+
run: |
36+
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
37+
chmod u+x macpython-download-cache-and-build-module-wheels.sh
38+
39+
- name: Build Python packages
40+
run: |
41+
export ITK_PACKAGE_VERSION=v5.1rc03
42+
./macpython-download-cache-and-build-module-wheels.sh
43+
44+
- name: Upload wheel artifact
45+
uses: actions/upload-artifact@v1
46+
with:
47+
name: MacOSWheels
48+
path: dist
49+
50+
Windows:
51+
runs-on: windows-2019
52+
53+
steps:
54+
- uses: actions/checkout@v1
55+
56+
- name: Fetch build script
57+
run: |
58+
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/windows-download-cache-and-build-module-wheels.ps1 -O
59+
60+
- name: Build Python packages
61+
run: |
62+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
63+
set ITK_PACKAGE_VERSION=v5.1rc03
64+
set CC=cl.exe
65+
set CXX=cl.exe
66+
powershell.exe -file .\windows-download-cache-and-build-module-wheels.ps1
67+
shell: cmd
68+
69+
- name: Upload wheel artifact
70+
uses: actions/upload-artifact@v1
71+
with:
72+
name: WindowsWheels
73+
path: dist

0 commit comments

Comments
 (0)