Skip to content

Commit 3fdfeec

Browse files
Merge pull request #14 from aboutcode-org/release-arm-wheels
Test linux arm support
2 parents 962d15c + 405f4c8 commit 3fdfeec

5 files changed

Lines changed: 61 additions & 28 deletions

File tree

.github/workflows/docs-ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI Documentation
22

33
on: [push, pull_request]
44

5+
permissions: {}
56
jobs:
67
build:
78
runs-on: ubuntu-24.04
@@ -13,10 +14,12 @@ jobs:
1314

1415
steps:
1516
- name: Checkout code
16-
uses: actions/checkout@v4
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
18+
with:
19+
persist-credentials: false
1720

1821
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
2023
with:
2124
python-version: ${{ matrix.python-version }}
2225

.github/workflows/pypi-release.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
tags:
1919
- "v*.*.*"
2020

21+
permissions: {}
2122
jobs:
2223
build-wheels:
2324
name: Build unicode wheels ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
@@ -39,6 +40,11 @@ jobs:
3940
build: "cp{310,311,312,313,314}-*"
4041
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
4142

43+
- os: ubuntu-24.04-arm
44+
arch: aarch64
45+
build: "cp{310,311,312,313,314}-*"
46+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
47+
4248
- os: macos-latest
4349
arch: universal2
4450
build: "cp{310,311,312,313,314}-*"
@@ -48,20 +54,22 @@ jobs:
4854
build: "cp{310,311,312,313,314}-*"
4955

5056
steps:
51-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
58+
with:
59+
persist-credentials: false
5260

5361
- name: Build wheels and run tests
54-
uses: pypa/cibuildwheel@v3.2.1
62+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084
5563
env:
5664
CIBW_BUILD: ${{ matrix.build }}
57-
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
5865
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
66+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.CIBW_MANYLINUX_AARCH64_IMAGE }}
5967
CIBW_ARCHS: ${{ matrix.arch }}
6068
CIBW_TEST_REQUIRES: pytest
6169
CIBW_TEST_COMMAND: pytest -vvs {project}/tests
6270

6371
- name: Collect built wheels
64-
uses: actions/upload-artifact@v4
72+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
6573
with:
6674
name: cyseq-wheels-${{ matrix.os }}-${{ strategy.job-index }}
6775
path: ./wheelhouse/*.whl
@@ -71,19 +79,22 @@ jobs:
7179
runs-on: ubuntu-24.04
7280

7381
steps:
74-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
83+
with:
84+
persist-credentials: false
7585

7686
- name: Checkout and install reqs
7787
run: |
7888
pip install --upgrade --user build twine pkginfo packaging pip setuptools cython
89+
pip install setuptools-scm==10.0.4
7990
8091
- name: Build sdist
8192
run: |
8293
python setup.py sdist
8394
twine check dist/*
8495
8596
- name: Collect built sdist
86-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
8798
with:
8899
name: cyseq-sdist
89100
path: dist/*.tar.gz
@@ -93,7 +104,7 @@ jobs:
93104
needs: [build-sdist, build-wheels]
94105
steps:
95106
- name: Merge created wheels and sdist in a single zip
96-
uses: actions/upload-artifact/merge@v4
107+
uses: actions/upload-artifact/merge@b7c566a772e6b6bfb58ed0dc250532a479d7789f
97108
with:
98109
name: cyseq-build
99110
pattern: cyseq-*
@@ -103,7 +114,7 @@ jobs:
103114
needs: merge
104115
runs-on: ubuntu-22.04
105116
steps:
106-
- uses: actions/download-artifact@v4
117+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
107118
with:
108119
path: cyseq-build
109120
- run: find . -ls
@@ -117,13 +128,13 @@ jobs:
117128

118129
steps:
119130
- name: Download builds
120-
uses: actions/download-artifact@v4
131+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
121132
with:
122133
name: cyseq-build
123134
path: cyseq-build
124135

125136
- name: Create GH release
126-
uses: softprops/action-gh-release@v2
137+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda
127138
with:
128139
draft: true
129140
files: cyseq-build/*
@@ -139,7 +150,7 @@ jobs:
139150

140151
steps:
141152
- name: Download builds
142-
uses: actions/download-artifact@v4
153+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
143154
with:
144155
name: cyseq-build
145156
path: dist/
@@ -150,4 +161,4 @@ jobs:
150161
151162
- name: Publish to PyPI
152163
if: startsWith(github.ref, 'refs/tags')
153-
uses: pypa/gh-action-pypi-publish@release/v1
164+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b

.github/workflows/test-and-build.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ name: Run tests and build wheel and sdist on all supported OS and Python
2525

2626
on: [push, pull_request, workflow_dispatch]
2727

28+
permissions: {}
2829
jobs:
2930
build_wheels:
3031
name: Build unicode wheels ${{ matrix.type }} ${{ matrix.arch }} on ${{ matrix.os }}
@@ -46,6 +47,11 @@ jobs:
4647
build: "cp{310,311,312,313,314}-*"
4748
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
4849

50+
- os: ubuntu-24.04-arm
51+
arch: aarch64
52+
build: "cp{310,311,312,313,314}-*"
53+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
54+
4955
- os: macos-latest
5056
arch: universal2
5157
build: "cp{310,311,312,313,314}-*"
@@ -55,22 +61,22 @@ jobs:
5561
build: "cp{310,311,312,313,314}-*"
5662

5763
steps:
58-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
65+
with:
66+
persist-credentials: false
5967

6068
- name: Build wheels and run tests
61-
uses: pypa/cibuildwheel@v3.2.1
69+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084
6270
env:
6371
CIBW_BUILD: ${{ matrix.build }}
64-
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
6572
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
73+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.CIBW_MANYLINUX_AARCH64_IMAGE }}
6674
CIBW_ARCHS: ${{ matrix.arch }}
6775
CIBW_TEST_REQUIRES: pytest
6876
CIBW_TEST_COMMAND: pytest -vvs {project}/tests
69-
# Skip PyPy wheels
70-
CIBW_SKIP: "pp*"
7177

7278
- name: Collect built wheels
73-
uses: actions/upload-artifact@v4
79+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
7480
with:
7581
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
7682
path: ./wheelhouse/*.whl
@@ -80,19 +86,22 @@ jobs:
8086
runs-on: ubuntu-24.04
8187

8288
steps:
83-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
90+
with:
91+
persist-credentials: false
8492

8593
- name: Checkout and install reqs
8694
run: |
8795
pip install --upgrade --user build twine pkginfo packaging pip setuptools cython
96+
pip install setuptools-scm==10.0.4
8897
8998
- name: Build sdist
9099
run: |
91100
python setup.py sdist
92101
twine check dist/*
93102
94103
- name: Collect built sdist
95-
uses: actions/upload-artifact@v4
104+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
96105
with:
97106
path: dist/*.tar.gz
98107

@@ -106,16 +115,18 @@ jobs:
106115
strategy:
107116
fail-fast: false
108117
matrix:
109-
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
118+
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-14, macos-15]
110119
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
111120

112121
steps:
113122
- name: Set up Python
114-
uses: actions/setup-python@v5
123+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
115124
with:
116125
python-version: "${{ matrix.python }}"
117126

118-
- uses: actions/checkout@v4
127+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
128+
with:
129+
persist-credentials: false
119130

120131
- name: Build, install and test
121132
run: >
@@ -134,11 +145,13 @@ jobs:
134145

135146
steps:
136147
- name: Set up Python
137-
uses: actions/setup-python@v5
148+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
138149
with:
139150
python-version: "${{ matrix.python }}"
140151

141-
- uses: actions/checkout@v4
152+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
153+
with:
154+
persist-credentials: false
142155

143156
- name: Build, install and test
144157
run: >

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
v0.1.3
5+
------
6+
7+
*2026-04-24* -- Also test and build linux arm wheels
8+
9+
410
v0.1.2
511
------
612

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = cyseq
3-
version = 0.1.2
3+
version = 0.1.3
44
license = Apache-2.0
55

66
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390

0 commit comments

Comments
 (0)