Skip to content

Commit

Permalink
Enhance CI workflow to prepare and upload espeak-ng data for macOS; a…
Browse files Browse the repository at this point in the history
…dd .gitignore for build artifacts
  • Loading branch information
thewh1teagle committed Jan 5, 2025
1 parent 94f40cd commit 8b8a50c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- platform: "windows-latest" # Windows arm64
archive: "espeak-ng-libs-windows-arm64.tar.gz"
extra-cmake-args: "-A ARM64"
extra-cmake-args: "-A ARM64"

runs-on: ${{ matrix.platform }}

Expand Down Expand Up @@ -61,10 +61,24 @@ jobs:
mv espeak-ng/espeak-ng-libs.tar.gz ${{ matrix.archive }}
shell: bash

- name: Prepare espeak-ng-data
run: |
cd espeak-ng
rm -rf build
cmake -B build . -DCMAKE_INSTALL_PREFIX=_espeak_ng_data -DCOMPILE_INTONATIONS=ON
cmake --build build
cmake --install build
mv _espeak_ng_data/share/espeak-ng-data ./espeak-ng-data
tar -czf espeak-ng-data.tar.gz espeak-ng-data
if: matrix.platform == 'macos-14'

- name: Uplaod to releases
run: |
latestTag=$(gh release view --json tagName --jq '.tagName')
gh release upload $latestTag ${{ matrix.archive }} --clobber
if [[ -f espeak-ng-data.tar.gz ]]
gh release upload $latestTag espeak-ng-data.tar.gz --clobber
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
.DS_Store

0 comments on commit 8b8a50c

Please sign in to comment.