-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (43 loc) · 1.38 KB
/
ci-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
name: CI Build
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake tcc
- name: Configure CMake (Linux GCC)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build (GCC)
run: cmake --build build --config Release
# - name: Configure CMake (Linux TCC)
# run: cmake -S . -B build-tcc -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=tcc
# - name: Build (TCC)
# run: cmake --build build-tcc --config Release
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: brew install cmake
- name: Configure CMake (macOS Clang)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install dependencies
run: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Configure CMake (Windows MSVC)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release