diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 790ad8a..71a9551 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,6 +103,7 @@ jobs: contents: write outputs: released: ${{ steps.release.outputs.released }} + newest_release_tag: ${{ steps.release_tag.outputs.newest_release_tag }} steps: - uses: actions/checkout@v4 @@ -135,6 +136,15 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Install python-semantic-release + run: python3 -m pip install python-semantic-release==7.34.6 + + - name: Get Release Tag + id: release_tag + shell: bash + run: | + echo "newest_release_tag=$(semantic-release print-version --current)" >> $GITHUB_OUTPUT + build_wheels: needs: [release] if: needs.release.outputs.released == 'true' @@ -144,15 +154,22 @@ jobs: strategy: matrix: os: + - ubuntu-24.04-arm - macos-latest - ubuntu-latest - windows-latest + musl: ["", "musllinux"] + exclude: + - os: windows-latest + musl: "musllinux" + - os: macos-latest + musl: "musllinux" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: + ref: "v${{ needs.release.outputs.newest_release_tag }}" fetch-depth: 0 - ref: "main" # Used to host cibuildwheel - name: Set up Python @@ -160,20 +177,6 @@ jobs: with: python-version: "3.11" - - name: Install python-semantic-release - run: python3 -m pip install python-semantic-release==7.34.6 - - - name: Get Release Tag - id: release_tag - shell: bash - run: | - echo "::set-output name=newest_release_tag::$(semantic-release print-version --current)" - - - uses: actions/checkout@v3 - with: - ref: "v${{ steps.release_tag.outputs.newest_release_tag }}" - fetch-depth: 0 - - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.22.0 @@ -181,10 +184,11 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse # to supply options, put them in 'env', like: env: - CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* cp310-* pp36-* pp37-* pp38-* pp39-* pp310-* + CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* cp310-* pp36-* pp37-* pp38-* pp39-* pp310-* ${{ matrix.musl == 'musllinux' && '*manylinux*' || '*musllinux*' }} CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc CIBW_BUILD_VERBOSITY: 3 REQUIRE_CYTHON: 1 + CIBW_ARCHS_LINUX: ${{ matrix.os == 'ubuntu-24.04-arm' && 'aarch64' || 'auto' }} - uses: actions/upload-artifact@v3 with: