From e3f7945d4038aa66339535a125b7d50e6e4da967 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Mon, 10 Jun 2024 23:43:30 +0200 Subject: [PATCH] Added musl build. Signed-off-by: Pavel Kirilin --- .github/workflows/release.yml | 67 ++++++++++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3f0e5ff..393c9c4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: CI +name: Release on: push: @@ -6,7 +6,7 @@ on: - '*' permissions: - contents: read + contents: write jobs: linux: @@ -31,6 +31,13 @@ jobs: with: name: wheels path: dist + - name: Releasing assets + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows: runs-on: windows-latest @@ -54,6 +61,13 @@ jobs: with: name: wheels path: dist + - name: Releasing assets + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} macos: runs-on: macos-latest @@ -76,6 +90,13 @@ jobs: with: name: wheels path: dist + - name: Releasing assets + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} sdist: runs-on: ubuntu-latest @@ -91,12 +112,50 @@ jobs: with: name: wheels path: dist + - name: Releasing assets + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + musllinux: + runs-on: ubuntu-latest + strategy: + matrix: + target: + - x86_64-unknown-linux-musl + - i686-unknown-linux-musl + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + architecture: x64 + - name: Build wheels + uses: messense/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist + manylinux: musllinux_1_2 + - name: Upload wheels + uses: actions/upload-artifact@v3 + with: + name: wheels + path: dist + - name: Releasing assets + uses: softprops/action-gh-release@v1 + with: + files: | + dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release: name: Release runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" - needs: [linux, windows, macos, sdist] + needs: [linux, windows, macos, musllinux, sdist] steps: - uses: actions/download-artifact@v3 with: