-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (88 loc) · 3.39 KB
/
test.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
name: Test
on:
push:
branches:
- dev
pull_request:
jobs:
client-windows:
name: Client on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Ninja" -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl ..
- name: Test
run: cd build && ninja run_client_tests
client-linux:
name: Client on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Install OpenGL
run: sudo apt-get update && sudo apt-get install --fix-missing cmake pkg-config mesa-utils libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev libglfw3-dev libglm-dev libao-dev libmpg123-dev libxkbcommon-dev libxinerama-dev libxcursor-dev libxi-dev xvfb
- name: Install SFML
run: sudo apt-get update && sudo apt-get install libudev-dev libopenal-dev libvorbis-dev libflac-dev libfreetype-dev
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Test
run: cd build && make run_client_tests
server-windows:
name: Server on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Ninja" -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl ..
- name: Test
run: cd build && ninja run_server_tests
server-linux:
name: Server on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Install OpenGL
run: sudo apt-get update && sudo apt-get install --fix-missing cmake pkg-config mesa-utils libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev libglfw3-dev libglm-dev libao-dev libmpg123-dev libxkbcommon-dev libxinerama-dev libxcursor-dev libxi-dev xvfb
- name: Install SFML
run: sudo apt-get update && sudo apt-get install libudev-dev libopenal-dev libvorbis-dev libflac-dev libfreetype-dev
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Test
run: cd build && make run_server_tests
shared-windows:
name: Shared on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake -G "Ninja" -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl ..
- name: Test
run: cd build && ninja run_server_tests
shared-linux:
name: Shared on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Install OpenGL
run: sudo apt-get update && sudo apt-get install --fix-missing cmake pkg-config mesa-utils libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev libglfw3-dev libglm-dev libao-dev libmpg123-dev libxkbcommon-dev libxinerama-dev libxcursor-dev libxi-dev xvfb
- name: Install SFML
run: sudo apt-get update && sudo apt-get install libudev-dev libopenal-dev libvorbis-dev libflac-dev libfreetype-dev
- uses: actions/checkout@v4
- name: Create build dir
run: mkdir -p build
- name: Run CMake
run: cd build && cmake ..
- name: Test
run: cd build && make run_shared_tests