Skip to content

Commit c099bc7

Browse files
authored
Merge pull request #129 from ccrutchf/master
Build ARM Wheels for PyPi
2 parents 3a84cd0 + 988c7a4 commit c099bc7

File tree

1 file changed

+76
-6
lines changed

1 file changed

+76
-6
lines changed

.github/workflows/main.yml

Lines changed: 76 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,79 @@ on:
1515

1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
18-
manylinux228-py311:
18+
arm64-manylinux228-py311:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: dbhi/qus/action@main
23+
- name: Build
24+
# Use Docker Command Directly to take more control over the platform
25+
run: >
26+
docker run \
27+
--env PYGMO_BUILD_TYPE=Python311 \
28+
--env GITHUB_WORKSPACE=${GITHUB_WORKSPACE} \
29+
--env TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} \
30+
--env TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }} \
31+
--volume ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} \
32+
--workdir ${GITHUB_WORKSPACE} \
33+
--platform linux/arm64 \
34+
pagmo2/manylinux228_aarch64_with_deps:latest \
35+
bash tools/gha_manylinux.sh
36+
arm64-manylinux228-py310:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: dbhi/qus/action@main
41+
- name: Build
42+
# Use Docker Command Directly to take more control over the platform
43+
run: >
44+
docker run \
45+
--env PYGMO_BUILD_TYPE=Python310 \
46+
--env GITHUB_WORKSPACE=${GITHUB_WORKSPACE} \
47+
--env TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} \
48+
--env TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }} \
49+
--volume ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} \
50+
--workdir ${GITHUB_WORKSPACE} \
51+
--platform linux/arm64 \
52+
pagmo2/manylinux228_aarch64_with_deps:latest \
53+
bash tools/gha_manylinux.sh
54+
arm64-manylinux228-py39:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
- uses: dbhi/qus/action@main
59+
- name: Build
60+
# Use Docker Command Directly to take more control over the platform
61+
run: >
62+
docker run \
63+
--env PYGMO_BUILD_TYPE=Python39 \
64+
--env GITHUB_WORKSPACE=${GITHUB_WORKSPACE} \
65+
--env TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} \
66+
--env TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }} \
67+
--volume ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} \
68+
--workdir ${GITHUB_WORKSPACE} \
69+
--platform linux/arm64 \
70+
pagmo2/manylinux228_aarch64_with_deps:latest \
71+
bash tools/gha_manylinux.sh
72+
arm64-manylinux228-py38:
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v2
76+
- uses: dbhi/qus/action@main
77+
- name: Build
78+
# Use Docker Command Directly to take more control over the platform
79+
run: >
80+
docker run \
81+
--env PYGMO_BUILD_TYPE=Python38 \
82+
--env GITHUB_WORKSPACE=${GITHUB_WORKSPACE} \
83+
--env TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} \
84+
--env TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }} \
85+
--volume ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} \
86+
--workdir ${GITHUB_WORKSPACE} \
87+
--platform linux/arm64 \
88+
pagmo2/manylinux228_aarch64_with_deps:latest \
89+
bash tools/gha_manylinux.sh
90+
amd64-manylinux228-py311:
1991
runs-on: ubuntu-latest
2092
container:
2193
image: pagmo2/manylinux228_x86_64_with_deps:latest
@@ -27,7 +99,7 @@ jobs:
2799
- uses: actions/checkout@v2
28100
- name: Build
29101
run: bash tools/gha_manylinux.sh
30-
manylinux228-py310:
102+
amd64-manylinux228-py310:
31103
runs-on: ubuntu-latest
32104
container:
33105
image: pagmo2/manylinux228_x86_64_with_deps:latest
@@ -39,7 +111,7 @@ jobs:
39111
- uses: actions/checkout@v2
40112
- name: Build
41113
run: bash tools/gha_manylinux.sh
42-
manylinux228-py39:
114+
amd64-manylinux228-py39:
43115
runs-on: ubuntu-latest
44116
container:
45117
image: pagmo2/manylinux228_x86_64_with_deps:latest
@@ -51,7 +123,7 @@ jobs:
51123
- uses: actions/checkout@v2
52124
- name: Build
53125
run: bash tools/gha_manylinux.sh
54-
manylinux228-py38:
126+
amd64-manylinux228-py38:
55127
runs-on: ubuntu-latest
56128
container:
57129
image: pagmo2/manylinux228_x86_64_with_deps:latest
@@ -96,5 +168,3 @@ jobs:
96168
uses: JamesIves/github-pages-deploy-action@v4
97169
with:
98170
folder: doc/_build/html # The folder the action should deploy.
99-
100-

0 commit comments

Comments
 (0)