Skip to content

armgit / piper

Public Imported from GitHub
0

A fast, local neural text to speech system

Try macos build

Michael Hansen45b4bb782269
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e0f29fa..6fb4bb7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -87,3 +87,35 @@ jobs:
asset_path: _install/piper_windows_amd64.zip
asset_name: piper_windows_amd64.zip
asset_content_type: application/zip
+ build_macos:
+ name: "macos build: ${{ matrix.arch }}"
+ runs-on: macos-latest
+ needs: create_release # we need to know the upload URL
+ strategy:
+ fail-fast: true
+ matrix:
+ arch: [x64, aarch64]
+ steps:
+ - uses: actions/checkout@v3
+ - name: configure
+ run: |
+ cmake -Bbuild -DCMAKE_INSTALL_PREFIX=_install/piper
+ - name: build
+ run: |
+ cmake --build build --config Release
+ - name: install
+ run: |
+ cmake --install build
+ - name: package
+ run: |
+ cd _install && \
+ tar -czf piper_macos_${{ matrix.arch }}.tar.gz piper/
+ - name: upload
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ with:
+ upload_url: ${{ needs.create_release.outputs.upload_url }}
+ asset_path: _install/piper_macos_${{ matrix.arch }}.tar.gz
+ asset_name: piper_macos_${{ matrix.arch }}.tar.gz
+ asset_content_type: application/octet-stream