Skip to content

Commit

Permalink
Add legacy visual studio versions to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 5, 2023
1 parent dc6d697 commit 822fe0b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
53 changes: 45 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,47 @@ jobs:
- name: build examples (release)
run: bake/bake examples --strict --cfg debug

build-configs-windows-cmake:
runs-on: windows-latest
timeout-minutes: 30

strategy:
matrix:
toolset: [default, v141, v142, clang-cl]
include:
- toolset: v141
toolset_option: -T"v141"
- toolset: v142
toolset_option: -T"v142"
- toolset: clang-cl
toolset_option: -T"ClangCl"

steps:
- uses: actions/checkout@v3
- name: create cmake build folders
run: |
mkdir cmake_build
mkdir examples/c/cmake_build
mkdir examples/cpp/cmake_build
- name: build flecs
working-directory: cmake_build
run: |
cmake ${{ matrix.toolset_option }} ..
cmake --build . -j 4
- name: build c examples
working-directory: examples/c/cmake_build
run: |
cmake ${{ matrix.toolset_option }} ..
cmake --build . -j 4
- name: build c++ examples
working-directory: examples/cpp/cmake_build
run: |
cmake ${{ matrix.toolset_option }} ..
cmake --build . -j 4
test-c-unix:
needs: [build-linux, build-macos]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -484,15 +525,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
os: [ ubuntu-latest, macOS-latest ]

steps:
- uses: actions/checkout@v3

- name: "msvc dev"
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1

- name: create cmake build folders
run: |
mkdir cmake_build
Expand All @@ -503,19 +540,19 @@ jobs:
working-directory: cmake_build
run: |
cmake ..
cmake --build .
cmake --build . -j 4
- name: build c examples
working-directory: examples/c/cmake_build
run: |
cmake ..
cmake --build .
cmake --build . -j 4
- name: build c++ examples
working-directory: examples/cpp/cmake_build
run: |
cmake ..
cmake --build .
cmake --build . -j 4
buildsystem-meson:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions examples/cpp/game_mechanics/scene_management/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <scene_management.h>
#include <iostream>
#include <string>

// This example shows one possible way to implement scene management
// using pipelines.
Expand Down

0 comments on commit 822fe0b

Please sign in to comment.