Skip to content

Commit 703eb30

Browse files
authored
GitHub actions (#329)
Add github action to compile Falcor on Windows
1 parent 7bc07db commit 703eb30

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ insert_final_newline = true
1515
# Override trailing whitespace setting for Markdown since there it's actually useful
1616
[*.{md}]
1717
trim_trailing_whitespace = false
18+
19+
[*.{yml}]
20+
indent_size = 2

.github/workflows/compile.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: compile
2+
3+
on:
4+
pull_request:
5+
branches: ["master"]
6+
7+
env:
8+
CMAKE_EXE: tools\.packman\cmake\bin\cmake.exe
9+
CMAKE_BUILD_PRESET: windows-ninja-msvc-d3d12
10+
CMAKE_BUILD_CONFIG: Release
11+
12+
jobs:
13+
windows:
14+
name: Windows/MSVC
15+
runs-on: windows-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
submodules: recursive
21+
- name: Setup
22+
run: setup.bat
23+
shell: cmd
24+
- name: Setup MSVC
25+
uses: ilammy/msvc-dev-cmd@v1
26+
with:
27+
arch: x64
28+
sdk: 10.0.19041.0
29+
toolset: 14.29
30+
- name: Build
31+
run: |
32+
%CMAKE_EXE% --preset %CMAKE_BUILD_PRESET%
33+
%CMAKE_EXE% --build build/%CMAKE_BUILD_PRESET% --config %CMAKE_BUILD_CONFIG%
34+
shell: cmd

0 commit comments

Comments
 (0)