Skip to content

Commit c74575c

Browse files
Use GitHub ARM Linux runner for builds (PR #496) and create source
package independently in order to avoid package corruption (#495).
1 parent b35c50b commit c74575c

File tree

2 files changed

+35
-10
lines changed

2 files changed

+35
-10
lines changed

.github/workflows/build.yaml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,43 @@ on:
88

99
jobs:
1010

11+
build_source_package:
12+
name: Build source package
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
cache: 'pip'
23+
python-version: 3.13
24+
25+
- name: Ensure build package is present
26+
run: python -m pip install setuptools
27+
28+
- name: Build wheel for Python ${{ matrix.python-version }}
29+
run: python setup.py sdist
30+
31+
- name: Upload the artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: python-oracledb-source
35+
path: dist
36+
1137
build_linux_wheels:
1238
name: Build wheels for Linux
13-
runs-on: ubuntu-latest
39+
runs-on: ${{ matrix.os }}
1440
strategy:
1541
matrix:
1642
include:
17-
- platform: amd64
43+
- os: ubuntu-24.04
44+
platform: amd64
1845
container: quay.io/pypa/manylinux_2_28_x86_64
19-
- platform: arm64
46+
- os: ubuntu-24.04-arm
47+
platform: arm64
2048
container: quay.io/pypa/manylinux_2_28_aarch64
2149

2250
steps:
@@ -25,11 +53,6 @@ jobs:
2553
with:
2654
submodules: true
2755

28-
- name: Set up QEMU
29-
uses: docker/setup-qemu-action@v3
30-
with:
31-
platforms: ${{ matrix.platform }}
32-
3356
- name: Generate script
3457
run: |
3558
echo export PYO_COMPILE_ARGS=-g0 > build.sh
@@ -57,7 +80,7 @@ jobs:
5780
uses: actions/upload-artifact@v4
5881
with:
5982
name: Linux_${{ matrix.platform }}_wheels
60-
path: dist
83+
path: dist/*.whl
6184

6285
build_non_linux_wheels:
6386
name: Build wheels for ${{ matrix.os }} Python-${{ matrix.python-version}}-${{ matrix.arch }}
@@ -97,7 +120,7 @@ jobs:
97120

98121
combine_artifacts:
99122
name: Combine artifacts into single artifact
100-
needs: [build_linux_wheels, build_non_linux_wheels]
123+
needs: [build_source_package, build_linux_wheels, build_non_linux_wheels]
101124
runs-on: ubuntu-latest
102125

103126
steps:

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Thick Mode Changes
3030
Common Changes
3131
++++++++++++++
3232

33+
#) Use GitHub Arm Linux runner for builds. Supplied by wojiushixiaobai
34+
(`PR 496 <https://github.com/oracle/python-oracledb/pull/496>`__).
3335
#) Improved the test suite and documentation.
3436

3537

0 commit comments

Comments
 (0)