Skip to content

Commit

Permalink
Compile project on both VS2022 and VS2019
Browse files Browse the repository at this point in the history
The GitHub Actions matrix include functionality was used to expand
the matrix only for windows os:
https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations

Change-Id: Ifdc2fce3acebf22842f914b538cbeeca96c1f8a9
  • Loading branch information
MiKom committed Feb 1, 2024
1 parent 13407b2 commit 2f50338
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
shared:
- ON
- OFF
include:
- os: windows-2022
vstoolset: [ 14.29, 14.38] # VS 2019 16.11.x

steps:
- name: Checkout sources
Expand All @@ -35,6 +38,8 @@ jobs:

- name: Make sure MSVC is found when Ninja generator is in use
uses: ilammy/msvc-dev-cmd@v1
with:
toolset: ${{ matrix.vstoolset }}

- name: Install linux dependencies
if: runner.os == 'Linux'
Expand Down

0 comments on commit 2f50338

Please sign in to comment.