-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHubAction builds for espeak-py #2
Merged
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e9ece67
Update code so it works on mac ARM
paulannetts ba9ded4
GHA try 1
paulannetts 7f9d31e
debug 1
paulannetts 2a16c5b
don't forget git submodules
paulannetts ac1bebc
Add some mac to see if it's better
paulannetts 045a83d
debugit
paulannetts b2e0a25
debug2
paulannetts 1e26920
Another way to affect changelog
paulannetts c3a93f9
Remove python version, add macos ARM
paulannetts c875a1f
Fix up the fix up for autotools
paulannetts 7834d14
macos specific build hacks
paulannetts 26b113c
limit python issues
paulannetts d379d2c
Mac Intel on macos-13 runner
paulannetts 5917637
Set an ubuntu version
paulannetts c1c8a16
Specify python versions
paulannetts 664cec2
Fix linux python and add path
paulannetts 5dd4cee
Per arch python versions
paulannetts b23b7c4
try again
paulannetts e0f3220
and again
paulannetts 18d4df0
Return sdist and special branch tagging
paulannetts 6275820
Fix up triggers and Ubuntu version
paulannetts 43886f9
Update configure settings for build
paulannetts d8aa2bb
Try and fix ubuntu by C gcc flag
paulannetts 1b6fd61
Try again
paulannetts 2dd7e40
Use publish flow to match other pypis
paulannetts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# This file is autogenerated by maturin v1.7.4 | ||
# To update, run | ||
# | ||
# maturin generate-ci github --platform linux --platform macos | ||
# | ||
# manual edits: | ||
# - to limit the number of ubuntu variants | ||
# - do the rust build step | ||
# - to add the RUSTFLAGS environment variable | ||
# - to specify python version used by maturin | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
pull_request: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
linux: | ||
runs-on: ${{ matrix.platform.runner }} | ||
strategy: | ||
matrix: | ||
platform: | ||
- runner: ubuntu-22.04 | ||
target: x86_64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v5 | ||
- name: Build bindings | ||
run: | | ||
tools/build.sh | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
env: | ||
RUSTFLAGS: -L espeak-ng/src/.libs | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
# only CPython and PyPy (which fail) so specify the full path to the CPythons | ||
args: --release --out dist --interpreter /usr/local/bin/python3.9 --interpreter /usr/local/bin/python3.11 | ||
sccache: 'true' | ||
manylinux: auto | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-linux-${{ matrix.platform.target }} | ||
path: dist | ||
|
||
macos: | ||
runs-on: ${{ matrix.platform.runner }} | ||
strategy: | ||
matrix: | ||
# Fix up the python versions that maturin detects, as some break | ||
platform: | ||
- runner: macos-13 | ||
target: x86_64 | ||
python_args: --interpreter /Users/runner/hostedtoolcache/Python/3.9.20/x64/bin/python3.9 --interpreter /usr/local/bin/python3.11 | ||
- runner: macos-14 | ||
target: aarch64 | ||
python_args: --interpreter python3.9 --interpreter python3.11 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v5 | ||
- name: Build bindings | ||
run: | | ||
tools/build.sh | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
env: | ||
RUSTFLAGS: -L espeak-ng/src/.libs | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
args: --release --out dist ${{ matrix.platform.python_args }} | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-macos-${{ matrix.platform.target }} | ||
path: dist | ||
|
||
# release: | ||
# name: Release | ||
# runs-on: ubuntu-latest | ||
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} | ||
# needs: [linux, macos, sdist] | ||
# permissions: | ||
# # Use to sign the release artifacts | ||
# id-token: write | ||
# # Used to upload release artifacts | ||
# contents: write | ||
# # Used to generate artifact attestation | ||
# attestations: write | ||
# steps: | ||
# - uses: actions/download-artifact@v4 | ||
# - name: Generate artifact attestation | ||
# uses: actions/attest-build-provenance@v1 | ||
# with: | ||
# subject-path: 'wheels-*/*' | ||
# - name: Publish to PyPI | ||
# if: "startsWith(github.ref, 'refs/tags/')" | ||
# uses: PyO3/maturin-action@v1 | ||
# env: | ||
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
# with: | ||
# command: upload | ||
# args: --non-interactive --skip-existing wheels-*/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
SCRIPT_DIR=$(cd $(dirname $0); pwd) | ||
PARENT_DIR=$(dirname $SCRIPT_DIR) | ||
|
||
echo $PARENT_DIR | ||
cd $PARENT_DIR/espeak-ng | ||
if [[ "$(uname)" == "Darwin" ]]; then | ||
brew install automake libtool autoconf | ||
rm CHANGELOG.md | ||
echo "Changelog dummy" > ChangeLog.md | ||
fi | ||
ls | ||
./autogen.sh | ||
./configure --without-klatt --without-speechplayer --without-mbrola --without-sonic --without-async | ||
make |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit this change then try
ubuntu-latest
again. I think this may have been the problem...