-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (69 loc) · 3.03 KB
/
ci.yml
File metadata and controls
72 lines (69 loc) · 3.03 KB
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
name: All
on: [push, pull_request, pull_request_review]
jobs:
doxygen:
name: Check docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run tiny_ref_checker
run: |
git clone https://github.com/Flone-dnb/tiny_ref_checker.git
cd tiny_ref_checker
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target tiny_ref_checker --config=Release
./tiny_ref_checker ../../src
build-windows:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull submodules
run: git submodule update --init --recursive
- name: Create build directory
run: mkdir build
- name: Build (Release)
run: |
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
working-directory: build
build-linux-clang:
name: Build on Linux using Clang
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y ninja-build libflac-dev libvorbis-dev pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libfribidi-dev libjack-dev libsndio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxtst-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev
- name: Create build directory
run: mkdir build
- name: Build (Release)
run: |
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
working-directory: build
build-linux-gcc:
name: Build on Linux using GCC
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y ninja-build libflac-dev libvorbis-dev pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libfribidi-dev libjack-dev libsndio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxtst-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev
- name: Create build directory
run: mkdir build
- name: Build (Release)
run: |
cmake -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
working-directory: build