Update README.md #326
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
| name: Build | |
| on: | |
| [workflow_dispatch, push, pull_request] | |
| env: | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| name: Build Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3.3.0 | |
| with: | |
| submodules: recursive | |
| - name: Build | |
| working-directory: ${{github.workspace}}/build | |
| run: | | |
| cmake -G "Visual Studio 18 2026" -A x64 -DBUILD_UTILS=ON -DBUILD_NAMCORE=ON -DBUILD_STATIC_RTNEURAL=ON -DBUILD_INTERNAL_STATIC_WAVENET=ON -DBUILD_INTERNAL_STATIC_LSTM=ON -T ClangCL .. | |
| cmake --build . --config=release -j4 | |
| - name: Run ModelTest | |
| working-directory: ${{github.workspace}}/build/Utils/ModelTest/Release | |
| run: | | |
| ./ModelTest.exe | |
| ./ModelTest.exe ..\..\Models\tw40_blues_deluxe_deerinkstudios.json | |
| - name: Upload binary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ModelTest-Windows | |
| path: ${{github.workspace}}/build/Utils | |
| build-linux-x64: | |
| name: Build Linux x64 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3.3.0 | |
| with: | |
| submodules: recursive | |
| - name: Build | |
| working-directory: ${{github.workspace}}/build | |
| env: | |
| CXX: g++-13 | |
| run: | | |
| cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_UTILS=ON -DBUILD_NAMCORE=ON -DBUILD_STATIC_RTNEURAL=ON -DBUILD_INTERNAL_STATIC_WAVENET=ON -DBUILD_INTERNAL_STATIC_LSTM=ON | |
| cmake --build . --config $BUILD_TYPE -j4 | |
| - name: Run ModelTest | |
| working-directory: ${{github.workspace}}/build/Utils/ModelTest | |
| run: | | |
| ./ModelTest | |
| ./ModelTest ../Models/tw40_blues_deluxe_deerinkstudios.json | |
| - name: Upload ModelTest | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ModelTest-Linux-x64 | |
| path: ${{github.workspace}}/build/Utils |