Skip to content
Merged
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
31 changes: 25 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ on:
types:
- published

permissions:
contents: read

jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0

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

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: cibw-sdist
path: dist/*.tar.gz
Expand All @@ -31,18 +35,33 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0

- name: Build wheels
uses: pypa/cibuildwheel@v2.21.3
uses: pypa/cibuildwheel@v3.4.0

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

list_all_artifacts:
needs:
- build_wheels
- build_sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v8
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- run: ls -lR dist

upload_pypi:
needs:
- build_wheels
Expand All @@ -54,7 +73,7 @@ jobs:
# Comment this line for testing
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ on:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install
run: |
sudo apt-get install sox ninja-build
Expand All @@ -39,6 +46,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -50,8 +59,9 @@ jobs:
steps:
- name: Install Build Dependencies
uses: mymindstorm/setup-emsdk@v14
- name: Checkout
uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Build
run: |
emcmake cmake -S . -B jsbuild
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,21 @@ If you don't have Conda, then what you will need to do is:

- now you can build wheels with pip, using the same method mentioned above.

Contributing
============

We use [Conventional Commits](https://www.conventionalcommits.org/) for our commit messages, and check them using `gitlint`.

We use automated code formatting tools and apply them systematically using `pre-commit`.

Please install and run our Git hooks before making commits and submitting pull requests:
```
pre-commit install
gitlint install-hook
```

Authors
-------
=======

SoundSwallower is based on PocketSphinx, which is based on Sphinx-II,
which is based on Sphinx, which is based on Harpy, and so on, and so
Expand Down
Loading