Skip to content

Commit

Permalink
faster windows build ilammy/msvc-dev-cmd@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jun 3, 2024
1 parent 13c7824 commit 6bcb51e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
mode: [Debug, Release]
mode: [ Debug, Release ]

env:
CXX: cl
Expand All @@ -27,16 +27,15 @@ jobs:
submodules: true
- uses: seanmiddleditch/gha-setup-ninja@master

- uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
$devShell = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find **\Microsoft.VisualStudio.DevShell.dll
$installPath = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationpath
Import-Module $devShell
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments "-arch=amd64"
cmake -GNinja -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.mode }}
cmake --build build --target pkg pkg-test
- name: Run Tests
run: .\build\pkg-test

- name: Upload Distribution
if: matrix.mode == 'Release'
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 6bcb51e

Please sign in to comment.