Skip to content

Commit

Permalink
GitHub actions (#329)
Browse files Browse the repository at this point in the history
Add github action to compile Falcor on Windows
  • Loading branch information
skallweitNV authored Oct 17, 2022
1 parent 7bc07db commit 703eb30
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ insert_final_newline = true
# Override trailing whitespace setting for Markdown since there it's actually useful
[*.{md}]
trim_trailing_whitespace = false

[*.{yml}]
indent_size = 2
34 changes: 34 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: compile

on:
pull_request:
branches: ["master"]

env:
CMAKE_EXE: tools\.packman\cmake\bin\cmake.exe
CMAKE_BUILD_PRESET: windows-ninja-msvc-d3d12
CMAKE_BUILD_CONFIG: Release

jobs:
windows:
name: Windows/MSVC
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
run: setup.bat
shell: cmd
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
toolset: 14.29
- name: Build
run: |
%CMAKE_EXE% --preset %CMAKE_BUILD_PRESET%
%CMAKE_EXE% --build build/%CMAKE_BUILD_PRESET% --config %CMAKE_BUILD_CONFIG%
shell: cmd

0 comments on commit 703eb30

Please sign in to comment.