Skip to content

Commit

Permalink
Add GitHub workflow for Windows
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
seedhartha committed Aug 3, 2024
1 parent b8847b7 commit 4a1c8d9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
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

0 comments on commit 4a1c8d9

Please sign in to comment.