Enabling windows build

This commit is contained in:
David Coeurjolly 2023-01-16 17:17:24 +01:00 committed by GitHub
parent fdd18ec713
commit 1e412a1b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,23 +21,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: macos
if: matrix.os == 'macOS-latest'
run: brew install ninja
- name: linux
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev ninja-build
run: sudo apt-get update && sudo apt-get install xorg-dev libglu1-mesa-dev
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration