Skip to content

Commit

Permalink
Publish wheels with ziglang dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 24, 2022
1 parent 2d5517f commit d452a43
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
uses: messense/maturin-action@v1
with:
args: --no-sdist --release --out dist --strip --universal2
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- name: Upload binary artifacts
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -78,6 +83,11 @@ jobs:
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --no-sdist --strip
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- name: Upload binary artifacts
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -132,6 +142,11 @@ jobs:
manylinux: auto
container: off
args: --no-sdist --release -o dist --strip
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
- name: Upload binary artifacts
uses: actions/upload-artifact@v2
with:
Expand All @@ -158,3 +173,20 @@ jobs:
file_glob: true
overwrite: true
tag: ${{ github.ref }}

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux ]
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
- name: Publish to PyPI
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }}
uses: messense/maturin-action@v1
with:
command: upload
args: --skip-existing *
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
build-backend = "maturin"

[project]
name = "cargo-zigbuild"
dependencies = ["ziglang>=0.9.0"]

[tool.maturin]
bindings = "bin"

0 comments on commit d452a43

Please sign in to comment.