Skip to content

Commit ff36307

Browse files
committed
Testing wheel generation
1 parent d63718f commit ff36307

3 files changed

Lines changed: 203 additions & 13 deletions

File tree

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
name: Testing wheels
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened, synchronize, labeled]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: false
11+
12+
permissions:
13+
contents: read
14+
15+
defaults:
16+
run:
17+
working-directory: ./icechunk-python
18+
19+
env:
20+
CARGO_INCREMENTAL: 0
21+
CARGO_NET_RETRY: 10
22+
CI: 1
23+
RUST_BACKTRACE: short
24+
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
25+
RUSTUP_MAX_RETRIES: 10
26+
RUST_CHANNEL: '1.86.0'
27+
28+
jobs:
29+
# linux:
30+
# runs-on: ${{ matrix.platform.runner }}
31+
# strategy:
32+
# matrix:
33+
# platform:
34+
# - runner: ubuntu-latest
35+
# target: x86_64
36+
# manylinux: auto
37+
# # - runner: ubuntu-latest
38+
# # target: x86
39+
# - runner: ubuntu-latest
40+
# target: aarch64
41+
# manylinux: 2_28
42+
# - runner: ubuntu-latest
43+
# target: armv7
44+
# manylinux: 2_28
45+
# steps:
46+
# - uses: actions/checkout@v4
47+
# - name: Stand up docker services
48+
# run: |
49+
# docker compose up -d
50+
# - name: Wait for MinIO to be ready
51+
# run: |
52+
# for _ in {1..10}; do
53+
# if curl --silent --fail http://minio:9000/minio/health/live; then
54+
# break
55+
# fi
56+
# sleep 3
57+
# done
58+
# docker compose exec -T minio mc alias set minio http://minio:9000 minio123 minio123
59+
# - uses: actions/setup-python@v5
60+
# with:
61+
# python-version: '3.11'
62+
# - name: Build wheels
63+
# uses: PyO3/maturin-action@v1
64+
# with:
65+
# working-directory: icechunk-python
66+
# target: ${{ matrix.platform.target }}
67+
# args: --release --out dist --find-interpreter
68+
# sccache: 'true'
69+
# manylinux: ${{ matrix.platform.manylinux }} # https://github.com/PyO3/maturin-action/issues/245
70+
# - name: Upload wheels
71+
# uses: actions/upload-artifact@v4
72+
# with:
73+
# name: wheels-linux-${{ matrix.platform.target }}
74+
# path: icechunk-python/dist
75+
76+
musllinux:
77+
runs-on: ${{ matrix.platform.runner }}
78+
strategy:
79+
matrix:
80+
platform:
81+
- runner: ubuntu-latest
82+
target: x86_64
83+
- runner: ubuntu-latest
84+
target: x86
85+
- runner: ubuntu-latest
86+
target: aarch64
87+
- runner: ubuntu-latest
88+
target: armv7
89+
steps:
90+
- uses: actions/checkout@v4
91+
- uses: actions/setup-python@v5
92+
with:
93+
python-version: 3.x
94+
#- name: Install Rust toolchain
95+
# run: |
96+
# rustup update --no-self-update ${{ env.RUST_CHANNEL }}
97+
# rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src clippy
98+
# rustup default ${{ env.RUST_CHANNEL }}
99+
#- name: Install bindgen-cli
100+
# run: |
101+
# cargo install --force --locked bindgen-cli
102+
- name: Build wheels
103+
uses: PyO3/maturin-action@v1
104+
with:
105+
working-directory: icechunk-python
106+
target: ${{ matrix.platform.target }}
107+
args: --release --out dist --find-interpreter
108+
sccache: 'true'
109+
manylinux: musllinux_1_2
110+
#before-script-linux: |
111+
# cargo install --force --locked bindgen-cli
112+
113+
# windows:
114+
# runs-on: ${{ matrix.platform.runner }}
115+
# strategy:
116+
# matrix:
117+
# platform:
118+
# - runner: windows-latest
119+
# target: x64
120+
# - runner: windows-latest
121+
# target: x86
122+
# steps:
123+
# - uses: actions/checkout@v4
124+
# - uses: actions/setup-python@v5
125+
# with:
126+
# python-version: 3.x
127+
# architecture: ${{ matrix.platform.target }}
128+
# - name: Build wheels
129+
# uses: PyO3/maturin-action@v1
130+
# with:
131+
# working-directory: icechunk-python
132+
# target: ${{ matrix.platform.target }}
133+
# args: --release --out dist --find-interpreter
134+
# sccache: 'true'
135+
# - name: Upload wheels
136+
# uses: actions/upload-artifact@v4
137+
# with:
138+
# name: wheels-windows-${{ matrix.platform.target }}
139+
# path: icechunk-python/dist
140+
#
141+
# macos:
142+
# runs-on: ${{ matrix.platform.runner }}
143+
# strategy:
144+
# matrix:
145+
# platform:
146+
# - runner: macos-13
147+
# target: x86_64
148+
# - runner: macos-14
149+
# target: aarch64
150+
# steps:
151+
# - uses: actions/checkout@v4
152+
# - uses: actions/setup-python@v5
153+
# with:
154+
# python-version: 3.x
155+
# - name: Build wheels
156+
# uses: PyO3/maturin-action@v1
157+
# with:
158+
# working-directory: icechunk-python
159+
# target: ${{ matrix.platform.target }}
160+
# args: --release --out dist --find-interpreter
161+
# sccache: 'true'
162+
# - name: Upload wheels
163+
# uses: actions/upload-artifact@v4
164+
# with:
165+
# name: wheels-macos-${{ matrix.platform.target }}
166+
# path: icechunk-python/dist
167+
#
168+
# sdist:
169+
# runs-on: ubuntu-latest
170+
# steps:
171+
# - uses: actions/checkout@v4
172+
# - name: Build sdist
173+
# uses: PyO3/maturin-action@v1
174+
# with:
175+
# working-directory: icechunk-python
176+
# command: sdist
177+
# args: --out dist
178+
# - name: Upload sdist
179+
# uses: actions/upload-artifact@v4
180+
# with:
181+
# name: wheels-sdist
182+
# path: icechunk-python/dist
183+
#
184+
# release:
185+
# name: Release
186+
# runs-on: ubuntu-latest
187+
# permissions:
188+
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
189+
# if: ${{ github.event_name == 'workflow_dispatch' }}
190+
# needs: [linux, musllinux, windows, macos, sdist]
191+
# steps:
192+
# - uses: actions/download-artifact@v4
193+
# - name: Publish to PyPI
194+
# uses: PyO3/maturin-action@v1
195+
# with:
196+
# command: upload
197+
# args: --non-interactive --skip-existing wheels-*/*
198+

Cargo.lock

Lines changed: 4 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

icechunk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rmpv = { version = "1.3.0", features = ["serde", "with-serde"] }
3838
aws-sdk-s3 = "1.85.0"
3939
aws-config = "1.6.3"
4040
aws-credential-types = "1.2.2"
41-
aws-lc-rs = { version = "1.13.1" }
41+
#aws-lc-rs = { version = "1.13.1", features = ["bindgen"] }
4242
typed-path = "0.11.0"
4343
aws-smithy-types-convert = { version = "0.60.9", features = [
4444
"convert-chrono",

0 commit comments

Comments
 (0)