Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
jobs:
validate_build:
name: Validate Build
runs-on: windows-latest
runs-on: windows-2022
env:
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}\vcpkg_cache

strategy:
matrix:
config: [ debug, release ]
Expand All @@ -28,15 +31,16 @@ jobs:
- name: Restore vcpkg cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/extern/vcpkg/packages
path: |
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
vcpkg_installed/
key: vcpkg-${{ runner.os }}-${{ hashFiles('**/vcpkg.json', '**/vcpkg-configuration.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-

- name: Setup VS environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Create vcpkg cache directory
shell: pwsh
run: New-Item -Path "${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" -ItemType Directory -Force

- name: Build ${{ matrix.config }}
run: |
Expand All @@ -52,8 +56,11 @@ jobs:

create_release:
name: Create Release with MSI
runs-on: windows-latest
runs-on: windows-2022
if: startsWith(github.ref, 'refs/tags/v')
env:
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}\vcpkg_cache

needs: validate_build

permissions:
Expand All @@ -73,15 +80,16 @@ jobs:
- name: Restore vcpkg cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/extern/vcpkg/packages
path: |
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
vcpkg_installed/
key: vcpkg-${{ runner.os }}-${{ hashFiles('**/vcpkg.json', '**/vcpkg-configuration.json') }}
restore-keys: |
vcpkg-${{ runner.os }}-

- name: Setup VS environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Create vcpkg cache directory
shell: pwsh
run: New-Item -Path "${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" -ItemType Directory -Force

- name: Install WiX v6 Toolset from MSI
shell: pwsh
Expand Down
Loading