Skip to content

Commit 12a07c4

Browse files
committed
improve: add github actions workflow for windows build
With this, we will be able to verify that the compilation is working during the opening of the pull request.
1 parent fd77aa4 commit 12a07c4

3 files changed

Lines changed: 73 additions & 4 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Build - Windows
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
push:
9+
branches:
10+
- main
11+
- master
12+
13+
env:
14+
CMAKE_BUILD_PARALLEL_LEVEL: 2
15+
MAKEFLAGS: '-j 2'
16+
17+
jobs:
18+
job:
19+
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
20+
name: ${{ matrix.os }}-${{ matrix.buildtype }}
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [windows-2022]
25+
buildtype: [Release, Debug]
26+
include:
27+
- os: windows-2022
28+
triplet: x64-windows
29+
packages: >
30+
sccache
31+
steps:
32+
- name: Setup MSBuild.exe
33+
uses: microsoft/[email protected]
34+
35+
- name: Checkout repository
36+
uses: actions/checkout@v2
37+
38+
- name: Install vcpkg
39+
run: |
40+
git clone https://github.com/Microsoft/vcpkg.git
41+
cd vcpkg
42+
./bootstrap-vcpkg.bat
43+
./vcpkg integrate install
44+
45+
- name: Build project
46+
run: msbuild.exe /p:VcpkgEnableManifest=true vcproj/RME.sln

CMakeSettings.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
{
1+
{
22
"configurations": [
33
{
44
"name": "x64-Release",
55
"generator": "Ninja",
6-
"configurationType": "RelWithDebInfo",
7-
"buildRoot": "${projectDir}\\out\\build\\${name}",
8-
"installRoot": "${projectDir}\\out\\install\\${name}",
6+
"configurationType": "Release",
7+
"buildRoot": "${projectDir}\\build\\${name}",
8+
"installRoot": "${projectDir}\\install\\${name}",
9+
"cmakeCommandArgs": "",
10+
"buildCommandArgs": "",
11+
"ctestCommandArgs": "",
12+
"inheritEnvironments": [ "msvc_x64_x64" ]
13+
},
14+
{
15+
"name": "x64-Debug",
16+
"generator": "Ninja",
17+
"configurationType": "Debug",
18+
"buildRoot": "${projectDir}\\build\\${name}",
19+
"installRoot": "${projectDir}\\install\\${name}",
920
"cmakeCommandArgs": "",
1021
"buildCommandArgs": "",
1122
"ctestCommandArgs": "",

vcpkg.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "remeres",
3+
"version-string": "1.0.0",
4+
"dependencies": [
5+
"asio",
6+
"freeglut",
7+
"nlohmann-json",
8+
"fmt",
9+
"wxwidgets",
10+
"opengl"
11+
]
12+
}

0 commit comments

Comments
 (0)