Skip to content

Commit 642febb

Browse files
abhiaagarwalrtylerion-elgreco
authored
chore(ci): use ubuntu-arm images for linux arm builds (delta-io#4043)
# Description The PyPI builds for Linux Arm64 have been OOMing recently. This is perhaps due to cross compilation. GHA now has native arm images, let's see if they they improve things. # Related Issue(s) Potential solution to delta-io#4041 # Documentation https://github.com/actions/partner-runner-images/blob/main/images/arm-ubuntu-24-image.md --------- Signed-off-by: Abhi Agarwal <abhiaagarwal01@gmail.com> Signed-off-by: R. Tyler Croy <rtyler@brokenco.de> Signed-off-by: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com> Co-authored-by: R. Tyler Croy <rtyler@brokenco.de> Co-authored-by: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com>
1 parent 740e060 commit 642febb

4 files changed

Lines changed: 27 additions & 24 deletions

File tree

.github/workflows/cleanup-pr-cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
cleanup:
1010
name: Cleanup PR Caches
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
1313
permissions:
1414
actions: write

.github/workflows/dev_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
process:
1414
name: Process
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-slim
1616
permissions:
1717
contents: read
1818
pull-requests: write
@@ -32,7 +32,7 @@ jobs:
3232

3333
commitlint:
3434
name: PR title / description conforms to semantic-release
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-slim
3636
permissions:
3737
pull-requests: write
3838
steps:

.github/workflows/issue_comments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
issue_assign:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-slim
1212
if: (!github.event.issue.pull_request) && github.event.comment.body == 'take'
1313
concurrency:
1414
# Only run one a time per user

.github/workflows/python_release.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defaults:
1111
jobs:
1212
validate-release-tag:
1313
name: Validate git tag
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-slim
1515
steps:
1616
- uses: actions/checkout@v5
1717
- name: compare git tag with cargo metadata
@@ -44,8 +44,8 @@ jobs:
4444
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
4545
with:
4646
target: ${{ matrix.target }}
47-
command: publish
48-
args: --skip-existing -m python/Cargo.toml --no-sdist --profile python-release
47+
command: build
48+
args: -m python/Cargo.toml --profile python-release
4949

5050
release-pypi-windows:
5151
needs: validate-release-tag
@@ -68,13 +68,13 @@ jobs:
6868
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
6969
with:
7070
target: x86_64-pc-windows-msvc
71-
command: publish
72-
args: --skip-existing -m python/Cargo.toml --no-sdist --profile python-release
71+
command: build
72+
args: -m python/Cargo.toml --profile python-release
7373

7474
release-pypi-manylinux-x86-64:
7575
needs: validate-release-tag
76-
name: PyPI release manylinux-2_17 x86_64
77-
runs-on: ubuntu-latest
76+
name: PyPI release on Linux (x86_64-manylinux-2_17)
77+
runs-on: ubuntu-24.04
7878
steps:
7979
- uses: actions/checkout@v5
8080

@@ -88,49 +88,52 @@ jobs:
8888
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
8989
with:
9090
target: x86_64-unknown-linux-gnu
91-
command: publish
92-
args: --skip-existing -m python/Cargo.toml --no-sdist --profile python-release
91+
command: build
92+
container: off
93+
args: -m python/Cargo.toml --zig --profile python-release
94+
manylinux: "2_17"
9395

9496
release-pypi-manylinux-228-aarch64:
9597
needs: validate-release-tag
96-
name: PyPI release manylinux-2_28 aarch64
97-
runs-on: ubuntu-latest
98+
name: PyPI release on Linux (aarch64-manylinux-2_28)
99+
runs-on: ubuntu-24.04-arm
98100
steps:
99101
- uses: actions/checkout@v5
100102

101103
- uses: Swatinem/rust-cache@v2
102104
with:
103105
cache-targets: false
104106

105-
- name: Publish manylinux to pypi aarch64 manylinux-2_28 (without sdist)
107+
- name: Publish manylinux to pypi aarch64 (without sdist)
106108
uses: messense/maturin-action@v1
107109
env:
108110
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
109111
with:
110112
target: aarch64-unknown-linux-gnu
111-
command: publish
112-
args: --skip-existing -m python/Cargo.toml --no-sdist --profile python-release
113+
command: build
114+
container: off
115+
args: -m python/Cargo.toml --zig --profile python-release
113116
manylinux: "2_28"
114117

115118
release-pypi-musl-x86-64:
116119
needs: validate-release-tag
117-
name: PyPI release musl-2_17 x86_64
118-
runs-on: ubuntu-latest
120+
name: PyPI release on Linux (x86_64-musl)
121+
runs-on: ubuntu-24.04
119122
steps:
120123
- uses: actions/checkout@v5
121124

122125
- uses: Swatinem/rust-cache@v2
123126
with:
124127
cache-targets: false
125128

126-
- name: Publish manylinux to pypi x86_64 (with sdist)
129+
- name: Publish musl to pypi x86_64 (with sdist)
127130
uses: messense/maturin-action@v1
128131
env:
129132
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
130133
with:
131134
target: x86_64-unknown-linux-musl
132-
command: publish
133-
args: --skip-existing -m python/Cargo.toml --zig --profile python-release
135+
command: build
136+
args: -m python/Cargo.toml --zig --profile python-release
134137

135138
release-docs:
136139
needs:
@@ -144,7 +147,7 @@ jobs:
144147
]
145148
permissions:
146149
contents: write
147-
runs-on: ubuntu-latest
150+
runs-on: ubuntu-slim
148151
steps:
149152
- name: Trigger the docs release event
150153
uses: peter-evans/repository-dispatch@v2

0 commit comments

Comments
 (0)