Add vs2022 to DevEnv targets and customize solution names by version #3
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: Cache vcpkg dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./vcpkg_installed | |
| key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }} | |
| restore-keys: | | |
| vcpkg-${{ runner.os }}- | |
| - 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_vs2022.sln /p:Configuration=Retail /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 |