Skip to content

Add vcpkg install step to restore dependencies #7

Add vcpkg install step to restore dependencies

Add vcpkg install step to restore dependencies #7

Workflow file for this run

name: Build Spectrum
on:
push:
pull_request:
jobs:
build:
runs-on: windows-2025-vs2026
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: Install vcpkg dependencies
shell: cmd
run: vcpkg install --triplet x64-windows
- 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=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