-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (47 loc) · 1.49 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
48
49
50
51
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
# Check that our C code is reasonably portable
- name: Build with TCC
run: |
tcc -c Source/ThirdParty/netarch/sam2.c \
-ISource/UnrealLibretro/Private \
-ISource/ThirdParty/zstd/lib \
-ISource/ThirdParty/libjuice/include \
-ISource/ThirdParty/libuv/include
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