diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b8d3bc3..4b70880 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,8 +1,3 @@ -# This file is autogenerated by maturin v1.8.2 -# To update, run -# -# maturin generate-ci github -# name: CI on: @@ -11,7 +6,7 @@ on: - main - master tags: - - '*' + - "*" pull_request: workflow_dispatch: @@ -37,6 +32,10 @@ jobs: - runner: ubuntu-22.04 target: ppc64le steps: + - name: Install dependencies + run: | + sudo apt update + sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: @@ -68,6 +67,10 @@ jobs: - runner: ubuntu-22.04 target: armv7 steps: + - name: Install dependencies + run: | + sudo apt update + sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: @@ -85,33 +88,6 @@ jobs: name: wheels-musllinux-${{ matrix.platform.target }} path: dist - windows: - runs-on: ${{ matrix.platform.runner }} - strategy: - matrix: - platform: - - runner: windows-latest - target: x64 - - runner: windows-latest - target: x86 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: 3.x - architecture: ${{ matrix.platform.target }} - - name: Build wheels - uses: PyO3/maturin-action@v1 - with: - target: ${{ matrix.platform.target }} - args: --release --out dist --find-interpreter - sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: wheels-windows-${{ matrix.platform.target }} - path: dist - macos: runs-on: ${{ matrix.platform.runner }} strategy: @@ -157,20 +133,17 @@ jobs: name: Release runs-on: ubuntu-latest if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} - needs: [linux, musllinux, windows, macos, sdist] + needs: [linux, musllinux, macos, sdist] permissions: - # Use to sign the release artifacts id-token: write - # Used to upload release artifacts contents: write - # Used to generate artifact attestation attestations: write steps: - uses: actions/download-artifact@v4 - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-path: 'wheels-*/*' + subject-path: "wheels-*/*" - name: Publish to PyPI if: ${{ startsWith(github.ref, 'refs/tags/') }} uses: PyO3/maturin-action@v1