Skip to content

Commit 298c5d7

Browse files
authored
fix: Bump manylinux to 2_28 and add wheel smoke (#34)
1 parent 43d99b9 commit 298c5d7

3 files changed

Lines changed: 68 additions & 38 deletions

File tree

.github/workflows/_wheel-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: _wheel-build
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
name: wheel ${{ matrix.platform.os }} / ${{ matrix.platform.target }} / py${{ matrix.python }}
9+
runs-on: ${{ matrix.platform.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
platform:
14+
- { os: ubuntu-latest, target: x86_64 }
15+
- { os: ubuntu-latest, target: aarch64 }
16+
- { os: macos-latest, target: x86_64 }
17+
- { os: macos-latest, target: aarch64 }
18+
python: ["3.12", "3.13"]
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python }}
24+
- uses: dtolnay/rust-toolchain@stable
25+
with:
26+
targets: wasm32-wasip2
27+
- name: build wasm transform
28+
working-directory: crates/transforms
29+
run: cargo build --target wasm32-wasip2 --release
30+
- name: stage wasm into sdk
31+
run: |
32+
mkdir -p apps/sdk/edgeflow/wasm
33+
cp crates/transforms/target/wasm32-wasip2/release/_lib.wasm \
34+
apps/sdk/edgeflow/wasm/standard_pipeline.wasm
35+
- uses: PyO3/maturin-action@v1
36+
with:
37+
working-directory: apps/sdk
38+
target: ${{ matrix.platform.target }}
39+
args: --release --out dist --features python -i python${{ matrix.python }}
40+
sccache: 'true'
41+
manylinux: '2_28'
42+
- uses: actions/upload-artifact@v4
43+
with:
44+
name: wheels-${{ matrix.platform.os }}-${{ matrix.platform.target }}-py${{ matrix.python }}
45+
path: apps/sdk/dist
46+
retention-days: 1

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,7 @@ permissions:
1010

1111
jobs:
1212
build-wheels:
13-
name: wheel ${{ matrix.platform.os }} / ${{ matrix.platform.target }} / py${{ matrix.python }}
14-
runs-on: ${{ matrix.platform.os }}
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
platform:
19-
- { os: ubuntu-latest, target: x86_64 }
20-
- { os: ubuntu-latest, target: aarch64 }
21-
- { os: macos-latest, target: x86_64 }
22-
- { os: macos-latest, target: aarch64 }
23-
python: ["3.12", "3.13"]
24-
steps:
25-
- uses: actions/checkout@v4
26-
- uses: actions/setup-python@v5
27-
with:
28-
python-version: ${{ matrix.python }}
29-
- uses: dtolnay/rust-toolchain@stable
30-
with:
31-
targets: wasm32-wasip2
32-
- name: build wasm transform
33-
working-directory: crates/transforms
34-
run: cargo build --target wasm32-wasip2 --release
35-
- name: stage wasm into sdk
36-
run: |
37-
mkdir -p apps/sdk/edgeflow/wasm
38-
cp crates/transforms/target/wasm32-wasip2/release/_lib.wasm \
39-
apps/sdk/edgeflow/wasm/standard_pipeline.wasm
40-
- uses: PyO3/maturin-action@v1
41-
with:
42-
working-directory: apps/sdk
43-
target: ${{ matrix.platform.target }}
44-
args: --release --out dist --features python -i python${{ matrix.python }}
45-
sccache: 'true'
46-
manylinux: auto
47-
- uses: actions/upload-artifact@v4
48-
with:
49-
name: wheels-${{ matrix.platform.os }}-${{ matrix.platform.target }}-py${{ matrix.python }}
50-
path: apps/sdk/dist
13+
uses: ./.github/workflows/_wheel-build.yml
5114

5215
build-sdist:
5316
name: source distribution

.github/workflows/wheel-smoke.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: wheel smoke build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'apps/sdk/**'
8+
- 'crates/transforms/**'
9+
- 'crates/client/**'
10+
- 'Cargo.lock'
11+
- '.github/workflows/wheel-smoke.yml'
12+
- '.github/workflows/_wheel-build.yml'
13+
workflow_dispatch:
14+
15+
concurrency:
16+
group: wheel-smoke-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build-wheels:
21+
uses: ./.github/workflows/_wheel-build.yml

0 commit comments

Comments
 (0)