Bump soupsieve from 2.7 to 2.8.4 in /doc/api/python #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | |
| on: | |
| push: | |
| pull_request: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| if: ${{ github.repository == 'Dandelion-Science/iceoryx2' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { os: macos-latest, python: "3.13", maturin-args: "", artifact: wheels-abi3-macos-arm64 } | |
| - { os: macos-latest, python: "3.14t", maturin-args: "-i python3.14t", artifact: wheels-cp314t-macos-arm64 } | |
| - { os: windows-latest, python: "3.13", maturin-args: "", artifact: wheels-abi3-win-amd64 } | |
| - { os: windows-latest, python: "3.14t", maturin-args: "-i python3.14t", artifact: wheels-cp314t-win-amd64 } | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install maturin | |
| run: pip install maturin | |
| - name: Build wheel | |
| env: | |
| MACOSX_DEPLOYMENT_TARGET: "11.0" | |
| working-directory: iceoryx2-ffi/python | |
| run: maturin build --release ${{ matrix.maturin-args }} --out ../../dist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: dist/*.whl | |
| retention-days: 7 | |
| build-linux: | |
| if: ${{ github.repository == 'Dandelion-Science/iceoryx2' }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: quay.io/pypa/manylinux_2_34_x86_64 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { python: "3.13", maturin-args: "", artifact: wheels-abi3-linux-x86_64 } | |
| - { python: "3.14t", maturin-args: "-i .venv/bin/python3.14t", artifact: wheels-cp314t-linux-x86_64 } | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable | |
| echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" | |
| - name: Install uv and create venv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| UV_PYTHON_PREFERENCE=only-managed "$HOME/.local/bin/uv" venv --python ${{ matrix.python }} .venv | |
| - name: Build wheel | |
| working-directory: iceoryx2-ffi/python | |
| run: uvx maturin build --release ${{ matrix.maturin-args }} --out ../../dist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: dist/*.whl | |
| retention-days: 7 | |
| publish: | |
| if: ${{ github.repository == 'Dandelion-Science/iceoryx2' && github.event_name == 'release' }} | |
| needs: [build, build-linux] | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| pattern: wheels-* | |
| merge-multiple: true | |
| path: dist | |
| - name: List wheels | |
| run: ls -la dist/ | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/*.whl | |
| tag_name: ${{ github.event.release.tag_name }} | |
| - uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| aws-region: ${{ vars.AWS_REGION }} | |
| role-to-assume: ${{ vars.ARN_IAM_ROLE_GHA_CORE }} | |
| - name: Get CodeArtifact authorization token | |
| run: | | |
| AWS_CODEARTIFACT_TOKEN=$(aws codeartifact get-authorization-token \ | |
| --domain ${{ vars.CODEARTIFACT_DOMAIN }} \ | |
| --domain-owner ${{ vars.CODEARTIFACT_DOMAIN_OWNER }} \ | |
| --query authorizationToken \ | |
| --output text) | |
| echo "AWS_CODEARTIFACT_TOKEN=$AWS_CODEARTIFACT_TOKEN" >> $GITHUB_ENV | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Publish to CodeArtifact | |
| run: uv publish dist/*.whl | |
| env: | |
| UV_PUBLISH_USERNAME: aws | |
| UV_PUBLISH_PASSWORD: ${{ env.AWS_CODEARTIFACT_TOKEN }} | |
| UV_PUBLISH_URL: ${{ vars.CODEARTIFACT_PYPI_STORE_REPOSITORY_URL }} |