Skip to content

Commit

Permalink
add workflow jobs to test c++ standards on Windows VS2022
Browse files Browse the repository at this point in the history
  • Loading branch information
fktn-k committed Jun 9, 2024
1 parent c091fa2 commit 742a88d
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
JOBS: 3

jobs:
msvc2019:
vs2019:
timeout-minutes: 10
runs-on: windows-2019
strategy:
Expand All @@ -54,9 +54,9 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -j ${{env.JOBS}}

msvc2022:
vs2022:
timeout-minutes: 10
runs-on: windows-latest
runs-on: windows-2022
strategy:
matrix:
arch: [ Win32, x64 ]
Expand All @@ -78,6 +78,29 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -j ${{env.JOBS}}

vs2022_cxx_standard:
timeout-minutes: 10
runs-on: windows-2022
strategy:
matrix:
cxx_standards: [ "11", "14", "17", "20", "23" ]
build_type: [ Debug, Release ]

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DFK_YAML_BUILD_TEST=ON -DFK_YAML_TEST_CXX_STANDARD=${{matrix.cxx_standards}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.JOBS}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -j ${{env.JOBS}}

mingw:
timeout-minutes: 10
runs-on: ${{matrix.os}}
Expand Down

0 comments on commit 742a88d

Please sign in to comment.