Skip to content

Commit

Permalink
updated to limited release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennet-Sunder authored May 15, 2024
1 parent acbd36f commit bf9996f
Showing 1 changed file with 4 additions and 58 deletions.
62 changes: 4 additions & 58 deletions .github/workflows/polyglot_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,6 @@ name: Release Polyglot Piranha
on:
workflow_dispatch:
jobs:
build_ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Build wheel with Maturin
run: |
pip install --upgrade maturin
maturin build --release -o dist
maturin build --sdist -o dist
- name: Pypi Release for ubuntu-latest
run: |
pip install twine
twine upload --skip-existing -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
build_ubuntu_20:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Build wheel with Maturin
run: |
pip install --upgrade maturin
maturin build --release -o dist
maturin build --sdist -o dist
- name: Pypi Release for ubuntu-latest
run: |
pip install twine
twine upload --skip-existing -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
macos_build_x86:
name: 'macos-x86'
runs-on: [macos-12]
Expand All @@ -53,30 +21,8 @@ jobs:
run: |
pip install --upgrade maturin
maturin build --release -o dist
- name: Pypi Release for macos-latest
run: |
pip install twine
twine upload --skip-existing -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
macos_build_arm:
name: 'macos-arm64'
runs-on: [macos-latest]
strategy:
matrix:
arch: ['arm64']
env:
# Polyglot depends on tree-sitter-python which tries to compile c++ files stdlibc++ which is depreciated in newer version of mac.
CXXFLAGS: -stdlib=libc++
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
python-version: 3.8
- name: Build wheel with Maturin
run: |
rustup target add aarch64-apple-darwin
pip install --upgrade maturin
maturin build --release -o dist --target universal2-apple-darwin
- name: Pypi Release for macos-latest
run: |
pip install twine
twine upload --skip-existing -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
name: polyglot-piranha-package-x86
path: dist/*

0 comments on commit bf9996f

Please sign in to comment.