Skip to content

Commit

Permalink
Merge pull request #12 from rhasspy/test-workflow
Browse files Browse the repository at this point in the history
Add test workflow
  • Loading branch information
synesthesiam committed Sep 27, 2023
2 parents 4f0749a + 4db4dee commit ee6b2ea
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,73 @@
name: test

on:
workflow_dispatch:
pull_request: ~
push:
branches:
- master

jobs:
test_linux:
name: "linux test: ${{ matrix.arch }}"
runs-on: ubuntu-20.04 # use older version on purpose for GLIBC
strategy:
fail-fast: true
matrix:
arch: [x64, aarch64, armv7]
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: test
run: |
LD_LIBRARY_PATH=$PWD/_install/piper-phonemize/lib _install/piper-phonemize/bin/piper_phonemize --help
test_windows:
runs-on: windows-latest
name: "windows build: ${{ matrix.arch }}"
strategy:
fail-fast: true
matrix:
arch: [x64]
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: check
run: |
_install/piper-phonemize/bin/piper_phonemize_exe --help
test_mac:
name: "mac test: ${{ matrix.arch }}"
runs-on: macos-latest
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: test
run: |
DYLD_LIBRARY_PATH=$PWD/_install/piper-phonemize/lib _install/piper-phonemize/bin/piper_phonemize --help

0 comments on commit ee6b2ea

Please sign in to comment.