Test generation #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build, download models (cached), and run all example scripts with short CI fixtures. | |
| # Validate locally: from repo root run ./examples/run-examples-ci.sh (after build + ./models.sh). | |
| # Trigger: release (published) or workflow_dispatch only. | |
| name: Test generation | |
| on: | |
| workflow_dispatch: {} | |
| release: | |
| types: [published] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq cmake build-essential pkg-config libopenblas-dev | |
| mkdir build && cd build | |
| cmake .. -DGGML_BLAS=ON | |
| cmake --build . --config Release -j$(nproc) | |
| # Restore/save model artifacts (see https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching) | |
| - name: Cache models | |
| id: cache-models | |
| uses: actions/cache@v4 | |
| with: | |
| path: models | |
| key: ${{ runner.os }}-acestep-models-q8-${{ hashFiles('models.sh') }} | |
| restore-keys: | | |
| ${{ runner.os }}-acestep-models-q8- | |
| ${{ runner.os }}-acestep-models- | |
| - name: Download models | |
| if: steps.cache-models.outputs.cache-hit != 'true' | |
| run: | | |
| pip install -q hf | |
| ./models.sh | |
| - name: Run examples (CI fixtures, short duration) | |
| run: chmod +x examples/run-examples-ci.sh && ./examples/run-examples-ci.sh | |
| - name: Upload generated audio | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: generated-audio | |
| path: | | |
| examples/dit-only0.wav | |
| examples/cover0.wav | |
| examples/cover-reference0.wav | |
| examples/request-reference0.wav | |
| examples/simple00.wav | |
| examples/partial00.wav | |
| examples/full00.wav |