From 8b8a50c3bac34f96b7ab97fea4daff3d84147023 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 5 Jan 2025 02:54:07 +0200 Subject: [PATCH] Enhance CI workflow to prepare and upload espeak-ng data for macOS; add .gitignore for build artifacts --- .github/workflows/build.yml | 16 +++++++++++++++- .gitignore | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b01194..5f06be0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..46c9745 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +.DS_Store \ No newline at end of file