@@ -43,29 +43,29 @@ jobs:
4343 run : |
4444 uv run pytest test_cloudcheck.py -v
4545
46- publish :
47- runs-on : ubuntu-latest
48- needs : test
49- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
50- steps :
51- - uses : actions/checkout@v6
52- - name : Set up Python
53- uses : actions/setup-python@v6
54- with :
55- python-version : " 3.x"
56- - name : Set up Rust
57- uses : dtolnay/rust-toolchain@stable
58- - name : Set up uv
59- uses : astral-sh/setup-uv@v7
60- - name : Build PyPi package
61- run : uv run maturin build --release --out dist
62- - name : Publish PyPi package
63- # TODO: Remove || true
64- run : uv run maturin publish --username __token__ --password ${{ secrets.PYPI_TOKEN }} || true
46+ # publish:
47+ # runs-on: ubuntu-latest
48+ # needs: test
49+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
50+ # steps:
51+ # - uses: actions/checkout@v6
52+ # - name: Set up Python
53+ # uses: actions/setup-python@v6
54+ # with:
55+ # python-version: "3.x"
56+ # - name: Set up Rust
57+ # uses: dtolnay/rust-toolchain@stable
58+ # - name: Set up uv
59+ # uses: astral-sh/setup-uv@v7
60+ # - name: Build PyPi package
61+ # run: uv run maturin build --release --out dist
62+ # - name: Publish PyPi package
63+ # # TODO: Remove || true
64+ # run: uv run maturin publish --username __token__ --password ${{ secrets.PYPI_TOKEN }} || true
6565 linux :
6666 runs-on : ${{ matrix.platform.runner }}
67- needs : publish
68- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
67+ # needs: publish
68+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
6969 strategy :
7070 matrix :
7171 platform :
8989 python-version : 3.x
9090 - name : Build wheels
9191 uses : PyO3/maturin-action@v1
92- env :
93- # Fix ARM cross-compilation: define __ARM_ARCH for assembly files
94- CFLAGS_aarch64_unknown_linux_gnu : " -march=armv8-a"
95- CFLAGS_armv7_unknown_linux_gnueabihf : " -march=armv7-a -mfpu=neon"
9692 with :
9793 target : ${{ matrix.platform.target }}
9894 args : --release --out dist --find-interpreter
@@ -119,8 +115,8 @@ jobs:
119115
120116 musllinux :
121117 runs-on : ${{ matrix.platform.runner }}
122- needs : publish
123- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
118+ # needs: publish
119+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
124120 strategy :
125121 matrix :
126122 platform :
@@ -145,16 +141,19 @@ jobs:
145141 sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
146142 manylinux : musllinux_1_2
147143 before-script-linux : |
148- if command -v apt-get >/dev/null 2>&1; then
144+ if command -v apk >/dev/null 2>&1; then
145+ # Alpine (musllinux)
146+ apk add --no-cache openssl-dev pkgconfig perl make musl-dev
147+ elif command -v apt-get >/dev/null 2>&1; then
149148 # Debian-based
150149 sudo apt-get update
151- sudo apt-get install -y pkg-config libssl-dev
150+ sudo apt-get install -y pkg-config libssl-dev perl make gcc g++ binutils
152151 elif command -v yum >/dev/null 2>&1; then
153152 # CentOS-based
154153 yum update -y
155- yum install -y openssl openssl-devel
154+ yum install -y openssl openssl-devel perl perl-core make gcc gcc-c++ binutils
156155 else
157- echo "Error: Neither apt-get nor yum found"
156+ echo "Error: No supported package manager found"
158157 exit 1
159158 fi
160159
@@ -166,8 +165,8 @@ jobs:
166165
167166 windows :
168167 runs-on : ${{ matrix.platform.runner }}
169- needs : publish
170- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
168+ # needs: publish
169+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
171170 strategy :
172171 matrix :
173172 platform :
@@ -195,8 +194,8 @@ jobs:
195194
196195 macos :
197196 runs-on : ${{ matrix.platform.runner }}
198- needs : publish
199- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
197+ # needs: publish
198+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
200199 strategy :
201200 matrix :
202201 platform :
@@ -223,8 +222,8 @@ jobs:
223222
224223 sdist :
225224 runs-on : ubuntu-latest
226- needs : publish
227- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
225+ # needs: publish
226+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
228227 steps :
229228 - uses : actions/checkout@v6
230229 - name : Build sdist
@@ -238,28 +237,28 @@ jobs:
238237 name : wheels-sdist
239238 path : dist
240239
241- release :
242- name : Release
243- runs-on : ubuntu-latest
244- needs : [linux, musllinux, windows, macos, sdist]
245- if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
246- permissions :
247- # Use to sign the release artifacts
248- id-token : write
249- # Used to upload release artifacts
250- contents : write
251- # Used to generate artifact attestation
252- attestations : write
253- steps :
254- - uses : actions/download-artifact@v7
255- - name : Generate artifact attestation
256- uses : actions/attest-build-provenance@v3
257- with :
258- subject-path : ' wheels-*/*'
259- - name : Publish to PyPI
260- uses : PyO3/maturin-action@v1
261- env :
262- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
263- with :
264- command : upload
265- args : --non-interactive --skip-existing wheels-*/*
240+ # release:
241+ # name: Release
242+ # runs-on: ubuntu-latest
243+ # needs: [linux, musllinux, windows, macos, sdist]
244+ # if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
245+ # permissions:
246+ # # Use to sign the release artifacts
247+ # id-token: write
248+ # # Used to upload release artifacts
249+ # contents: write
250+ # # Used to generate artifact attestation
251+ # attestations: write
252+ # steps:
253+ # - uses: actions/download-artifact@v7
254+ # - name: Generate artifact attestation
255+ # uses: actions/attest-build-provenance@v3
256+ # with:
257+ # subject-path: 'wheels-*/*'
258+ # - name: Publish to PyPI
259+ # uses: PyO3/maturin-action@v1
260+ # env:
261+ # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
262+ # with:
263+ # command: upload
264+ # args: --non-interactive --skip-existing wheels-*/*
0 commit comments