|
1 | | -# This file is autogenerated by maturin v1.7.1 |
| 1 | +# This file is autogenerated by maturin v1.7.4 |
2 | 2 | # To update, run |
3 | 3 | # |
4 | | -# maturin generate-ci github --pytest --platform all |
| 4 | +# maturin generate-ci github --pytest --platform linux |
5 | 5 | # |
6 | 6 | name: Maturin CI |
| 7 | + |
7 | 8 | on: |
8 | 9 | push: |
9 | 10 | paths: |
|
27 | 28 | target: x86_64 |
28 | 29 | - runner: ubuntu-latest |
29 | 30 | target: x86 |
| 31 | + - runner: ubuntu-latest |
| 32 | + target: aarch64 |
30 | 33 | steps: |
31 | 34 | - uses: actions/checkout@v4 |
32 | 35 | - uses: actions/setup-python@v5 |
|
52 | 55 | python3 -m venv .venv |
53 | 56 | source .venv/bin/activate |
54 | 57 | pip install sedpack --find-links dist --force-reinstall |
55 | | - pip3 install --require-hashes --no-deps -r requirements.txt # TODO workaround |
| 58 | + pip install --require-hashes --no-deps -r requirements.txt # TODO workaround |
56 | 59 | pip install pytest |
57 | 60 | pytest |
58 | 61 | - name: pytest |
|
68 | 71 | pip3 install -U pip pytest |
69 | 72 | run: | |
70 | 73 | set -e |
71 | | - pip3 install sedpack --find-links dist --force-reinstall |
72 | 74 | pip3 install --require-hashes --no-deps -r requirements.txt # TODO workaround |
| 75 | + pip3 install sedpack --find-links dist --force-reinstall |
73 | 76 | pytest |
74 | 77 |
|
75 | 78 | sdist: |
|
86 | 89 | with: |
87 | 90 | name: wheels-sdist |
88 | 91 | path: dist |
| 92 | + |
| 93 | + release: |
| 94 | + name: Release |
| 95 | + runs-on: ubuntu-latest |
| 96 | + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} |
| 97 | + needs: [linux, sdist] |
| 98 | + permissions: |
| 99 | + # Use to sign the release artifacts |
| 100 | + id-token: write |
| 101 | + # Used to upload release artifacts |
| 102 | + contents: write |
| 103 | + # Used to generate artifact attestation |
| 104 | + attestations: write |
| 105 | + steps: |
| 106 | + - uses: actions/download-artifact@v4 |
| 107 | + - name: Generate artifact attestation |
| 108 | + uses: actions/attest-build-provenance@v1 |
| 109 | + with: |
| 110 | + subject-path: 'wheels-*/*' |
| 111 | + - name: Publish to PyPI |
| 112 | + if: "startsWith(github.ref, 'refs/tags/')" |
| 113 | + uses: PyO3/maturin-action@v1 |
| 114 | + env: |
| 115 | + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |
| 116 | + with: |
| 117 | + command: upload |
| 118 | + args: --non-interactive --skip-existing wheels-*/* |
0 commit comments