Skip to content

Commit

Permalink
Merge pull request #13 from rhasspy/macos-build
Browse files Browse the repository at this point in the history
Add macos build
  • Loading branch information
synesthesiam authored Sep 27, 2023
2 parents ee6b2ea + 932a4dd commit 4d03e2b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,35 @@ jobs:
asset_path: _install/piper-phonemize_windows_amd64.zip
asset_name: piper-phonemize_windows_amd64.zip
asset_content_type: application/zip
build_macos:
runs-on: macos-latest
name: "mac build: ${{ matrix.arch }}"
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-phonemize
- name: build
run: |
cmake --build build --config Release
- name: install
run: |
cmake --install build
- name: package
run: |
cd _install && \
tar -czf piper-phonemize_macos_${{ matrix.arch }}.tar.gz piper-phonemize/
- 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-phonemize_macos_${{ matrix.arch }}.tar.gz
asset_name: piper-phonemize_macos_${{ matrix.arch }}.tar.gz
asset_content_type: application/octet-stream

0 comments on commit 4d03e2b

Please sign in to comment.