Enable CI workflow to run on all branches for testing #1
Workflow file for this run
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 Spectrum | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Setup project | |
| shell: cmd | |
| run: setup.bat | |
| - name: Generate Visual Studio projects | |
| shell: cmd | |
| run: generate_project.bat | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Build solution | |
| run: msbuild ./projects/spectrum.sln /p:Configuration=Release /p:Platform=x64 /m | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: build-output | |
| path: | | |
| ./workdir/ | |
| ./projects/ | |
| retention-days: 7 |