-
Notifications
You must be signed in to change notification settings - Fork 491
91 lines (89 loc) · 2.24 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
windows-vs2022:
name: Windows VS2022
runs-on: windows-latest
strategy:
matrix:
include:
- config: Release
- config: Debug
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
toolset: 14.30
- name: Configure
run: setup_vs2022.bat
shell: cmd
- name: Build
run: msbuild.exe build\windows-vs2022\Falcor.sln /p:Configuration=${{ matrix.config }}
shell: cmd
windows-ninja-msvc:
name: Windows Ninja/MSVC
runs-on: windows-latest
env:
CMAKE_EXE: tools\.packman\cmake\bin\cmake.exe
CMAKE_BUILD_PRESET: windows-ninja-msvc
strategy:
matrix:
include:
- config: Release
- config: Debug
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
sdk: 10.0.19041.0
toolset: 14.30
- name: Configure
run: setup.bat
shell: cmd
- name: Build
run: |
%CMAKE_EXE% --preset %CMAKE_BUILD_PRESET%
%CMAKE_EXE% --build build/%CMAKE_BUILD_PRESET% --config ${{ matrix.config }}
shell: cmd
linux-gcc:
name: Linux/GCC
runs-on: ubuntu-22.04
env:
CMAKE_EXE: ./tools/.packman/cmake/bin/cmake
CMAKE_BUILD_PRESET: linux-gcc
strategy:
matrix:
include:
- config: Release
- config: Debug
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup system dependencies
run: sudo apt install -y xorg-dev libgtk-3-dev
shell: bash
- name: Configure
run: ./setup.sh
shell: bash
- name: Build
run: |
${CMAKE_EXE} --preset ${CMAKE_BUILD_PRESET}
${CMAKE_EXE} --build build/${CMAKE_BUILD_PRESET} --config ${{ matrix.config }}
shell: bash