Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- 'VERSION'
- 'ppanggolin_env.yaml'
- 'pyproject.toml'
- 'setup.py'
pull_request:
branches:
- '*'
Expand All @@ -30,7 +29,6 @@ on:
- 'VERSION'
- 'ppanggolin_env.yaml'
- 'pyproject.toml'
- 'setup.py'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
43 changes: 8 additions & 35 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,22 @@ on:
- released # Run only on release events, use 'published' to run on draft or pre-release

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-14 is an Apple Silicon runner
# Should we support Linux ARM? If so, add 'ubuntu-24.04-arm'
# macos 13 is not supported by github anymore.
os: [ubuntu-latest, macos-14, ubuntu-24.04-arm]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.23.0
# We skip:
# - 32-bit builds
# - PyPy builds (check if ppanggolin works on PyPy first)
env:
CIBW_SKIP: "*_i686 pp*"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
build:
name: Build sdist and wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist
- name: Build sdist and wheel
run: pipx run build

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
name: dist
path: dist/*

upload_pypi:
needs: [build_wheels, build_sdist]
needs: [build]
runs-on: ubuntu-latest
environment: pypi
permissions:
Expand All @@ -81,9 +55,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
name: dist
path: dist
merge-multiple: true

- name: Publish to PyPI
if: (github.event_name == 'release' && github.event.action == 'released') || (github.event_name == 'workflow_dispatch' && inputs.publish_to_pypi == 'true')
Expand Down
54 changes: 0 additions & 54 deletions ppanggolin/nem/NEM/genmemo.c

This file was deleted.

49 changes: 0 additions & 49 deletions ppanggolin/nem/NEM/genmemo.h

This file was deleted.

Loading
Loading