-
-
Notifications
You must be signed in to change notification settings - Fork 146
108 lines (94 loc) · 3.46 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Build
on:
pull_request:
push:
branches: [ master, dev ]
workflow_dispatch:
permissions:
statuses: write
contents: read
jobs:
build-linux-clang:
name: Linux, Clang
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
CFLAGS: -Werror
CXXFLAGS: -Werror
steps:
- uses: actions/checkout@v3
- name: Configure static library
run: cmake -S . -B build-static -D ENKITS_SANITIZE=ON
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll
- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
run: ./build-shared/TestAll
build-linux-gcc:
name: Linux, gcc
runs-on: ubuntu-latest
env:
CC: gcc
CXX: g++
CFLAGS: -Werror
CXXFLAGS: -Werror
steps:
- uses: actions/checkout@v3
- name: Configure static library
run: cmake -S . -B build-static -D ENKITS_SANITIZE=ON
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll
- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
run: ./build-shared/TestAll
build-macos-cocoa-clang:
name: Cocoa (macOS, Clang)
runs-on: macos-latest
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
steps:
- uses: actions/checkout@v3
- name: Configure static library
run: cmake -S . -B build-static -D ENKITS_SANITIZE=ON
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll
- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
run: ./build-shared/TestAll
build-windows-win32-vs2022:
name: Win32 (Windows, VS2022)
runs-on: windows-latest
env:
CFLAGS: /WX
CXXFLAGS: /WX
steps:
- uses: actions/checkout@v3
- name: Configure static library
run: cmake -S . -B build-static -G "Visual Studio 17 2022" -D ENKITS_SANITIZE=ON
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: .\build-static\Debug\TestAll.exe
- name: Configure shared library
run: cmake -S . -B build-shared -G "Visual Studio 17 2022" -D ENKITS_BUILD_SHARED=ON
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
run: .\build-shared\Debug\TestAll.exe