Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub workflow for Windows #57

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CMake
name: Build and run tests on Linux

on: push
on:
push:
branches: [master]
pull_request:
workflow_dispatch:

env:
BUILD_TYPE: Release
Expand All @@ -9,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install dependencies
run: >
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/build-test-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and run tests on Windows

on:
workflow_dispatch:

jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |-
vcpkg install --triplet x64-windows `
boost-algorithm boost-endian boost-format boost-functional boost-program-options `
glm sdl2 glew openal-soft libmad ffmpeg wxwidgets gtest

- name: Generate solution
run: |-
mkdir build
cmake -S . -B build `
-G "Visual Studio 17 2022" -A x64 `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake

- name: Build solution
working-directory: ${{github.workspace}}/build
run: cmake --build .

- name: Run tests
working-directory: ${{github.workspace}}/build
run: ctest -V