-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.46 KB
/
build.yaml
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
name: Build
on: [workflow_dispatch, pull_request]
env:
TERM: xterm-256color
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- name: Build - Ubuntu
runs-on: ubuntu-latest
- name: Build - Windows (win32)
runs-on: windows-latest
cmake-args: -A Win32 -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
- name: Build - Windows (win64)
runs-on: windows-latest
cmake-args: -D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
- name: Build - macOS
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Generate project
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release ${{ matrix.cmake-args}}
- name: Build project
run: cmake --build build --config Release
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: |
**/*.so
**/*.dll
**/*.dylib
retention-days: 30
- name: Upload build errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: CMake Errors - ${{ matrix.name }}
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
**/Testing/Temporary/LastTest.log
retention-days: 30