From f480fc5b5c605abbb62eea26dff6dd5b572a0aac Mon Sep 17 00:00:00 2001 From: Simon Weis Date: Tue, 26 Mar 2024 19:20:34 +0100 Subject: [PATCH] . e switch to windows-latest --- .../workflows/build-and-test-visual-studio-solutions.yml | 7 +++---- .gitignore | 2 +- create_visual_studio_project.bat | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-test-visual-studio-solutions.yml b/.github/workflows/build-and-test-visual-studio-solutions.yml index 5d2e556..cd3ec88 100644 --- a/.github/workflows/build-and-test-visual-studio-solutions.yml +++ b/.github/workflows/build-and-test-visual-studio-solutions.yml @@ -11,7 +11,7 @@ on: jobs: build_vs2019_sln: - runs-on: windows-2019 + runs-on: windows-latest steps: - uses: actions/checkout@v1 @@ -22,12 +22,11 @@ jobs: - name: build run: | - cd visual-studio-2019 - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" + cd visual-studio cmake --build . shell: cmd - name: test run: | - cd visual-studio-2019 + cd visual-studio ctest . -C debug diff --git a/.gitignore b/.gitignore index a67e7c9..bf1db04 100644 --- a/.gitignore +++ b/.gitignore @@ -328,4 +328,4 @@ ASALocalRun/ .idea/ # machine generated folder -visual-studio-2019/ +visual-studio/ diff --git a/create_visual_studio_project.bat b/create_visual_studio_project.bat index 7809020..7380d54 100644 --- a/create_visual_studio_project.bat +++ b/create_visual_studio_project.bat @@ -1,5 +1,5 @@ -rmdir /s /q visual-studio-2019 -mkdir visual-studio-2019 -cd visual-studio-2019 -cmake -G "Visual Studio 16 2019" .. +rmdir /s /q visual-studio +mkdir visual-studio +cd visual-studio +cmake .. cd ..