Towards support for all platforms #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compile | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
windows_build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
vcpkg install sdl2:x64-windows | |
vcpkg install opengl:x64-windows | |
vcpkg integrate install | |
- name: Build & Install | |
run: | | |
mkdir cmake-build-release | |
cd cmake-build-release | |
cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake | |
cmake --install . | |
- name: Build all examples | |
run: | | |
cd cmake-build-release | |
cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake | |
cmake --build . |