Skip to content

Commit

Permalink
Update windows_msvc.yml
Browse files Browse the repository at this point in the history
Use Visual Studio Generator instead of Ninja.
  • Loading branch information
FlorianFrank authored Sep 7, 2023
1 parent 96449dc commit 49f63fb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/windows_msvc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: windows_latest_msvc
name: windows_2022_msvc

on: [push]

env:
BUILD_TYPE: Release
CC: cl,
CXX: cl,

jobs:
build:
Expand All @@ -15,14 +17,11 @@ jobs:
config:
- {
name: "Windows Latest MSVC",
os: windows-latest,
artifact: "windows_msvc.7z",
os: windows-2022,
msvc_arch: x64_x86,
build_type: "Release",
CC: cl,
CXX: cl,
archiver: "7z a",
generators: "Ninja"
}

steps:
Expand All @@ -45,7 +44,7 @@ jobs:
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
shell: pwsh
run: cmake ../common_tools_lib -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DPIL_ALL=1 -DPIL_UNIT_TESTING=1 -DPIL_NSIS_BUILD=1
run: cmake ../common_tools_lib -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DPIL_ALL=1 -DPIL_UNIT_TESTING=1 -DPIL_NSIS_BUILD=1

- name: Build Project
working-directory: ${{runner.workspace}}/build
Expand Down Expand Up @@ -78,4 +77,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: common_tools_lib-installer.zip
path: ${{ runner.workspace }}/build/common_tools_lib-1.0.0-win64.exe
path: ${{ runner.workspace }}/build/common_tools_lib-1.0.0-win64.exe

0 comments on commit 49f63fb

Please sign in to comment.