Skip to content

Commit cf0ceb4

Browse files
committed
fix(ci): touch all .rs after COPY in Docker; fix Python aarch64-linux maturin -i; macos-latest for x86_64-apple-darwin
1 parent 19ca669 commit cf0ceb4

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/release-python.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,39 @@ jobs:
1919
- runner: ubuntu-latest
2020
target: x86_64-unknown-linux-gnu
2121
manylinux: auto
22+
interpreter: python3.10 python3.11 python3.12 python3.13
2223
- runner: ubuntu-latest
2324
target: aarch64-unknown-linux-gnu
2425
manylinux: auto
25-
- runner: macos-13
26+
interpreter: python3.10 python3.11 python3.12 python3.13
27+
- runner: macos-latest
2628
target: x86_64-apple-darwin
2729
manylinux: ''
30+
interpreter: python3.10 python3.11 python3.12 python3.13
2831
- runner: macos-14
2932
target: aarch64-apple-darwin
3033
manylinux: ''
34+
interpreter: python3.10 python3.11 python3.12 python3.13
3135
- runner: windows-latest
3236
target: x86_64-pc-windows-msvc
3337
manylinux: ''
38+
interpreter: python3.10 python3.11 python3.12 python3.13
3439

3540
steps:
3641
- uses: actions/checkout@v4
3742

38-
# Linux: maturin-action builds all Python versions automatically via
39-
# the manylinux container (cp310–cp313).
40-
# macOS: install multiple interpreters so maturin produces one wheel
41-
# per Python version per arch.
43+
# For non-manylinux (macOS, Windows) install multiple Python versions.
44+
# For manylinux, actions/setup-python doesn't affect the containerised
45+
# build — maturin finds Python inside the container via -i.
4246
- uses: actions/setup-python@v5
43-
if: ${{ !startsWith(matrix.platform.runner, 'ubuntu') }}
47+
if: ${{ matrix.platform.manylinux == '' }}
4448
with:
4549
python-version: |
4650
3.10
4751
3.11
4852
3.12
4953
3.13
5054
51-
- uses: actions/setup-python@v5
52-
if: startsWith(matrix.platform.runner, 'ubuntu')
53-
with:
54-
python-version: '3.12'
55-
5655
- name: Build wheels
5756
uses: PyO3/maturin-action@v1
5857
with:
@@ -61,7 +60,7 @@ jobs:
6160
working-directory: sdks/python
6261
args: >-
6362
--release --out dist/
64-
${{ !startsWith(matrix.platform.runner, 'ubuntu') && '-i python3.10 python3.11 python3.12 python3.13' || '' }}
63+
-i ${{ matrix.platform.interpreter }}
6564
sccache: 'true'
6665

6766
- name: Upload wheel artifact

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ RUN sed -E -i \
3030

3131
# Now copy real source and build
3232
COPY crates/ crates/
33-
RUN touch crates/edgeparse-core/src/lib.rs crates/edgeparse-cli/src/main.rs \
33+
# Touch ALL Rust source files so Cargo sees them as newer than the dummy
34+
# build artifacts and recompiles every crate (especially pdf-cos).
35+
RUN find crates/ -name '*.rs' -exec touch {} + \
3436
&& cargo build --release -p edgeparse-cli
3537

3638
# ─── Stage 2: Runtime ─────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)