forked from itgmania/itgmania
-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (116 loc) · 3.85 KB
/
ci.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
on:
push:
pull_request:
paths-ignore:
- '**.md'
name: Continuous integration
jobs:
ubuntu-build:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cmake-build-
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y
libasound2-dev
libgl-dev
libglu1-mesa-dev
libgtk-3-dev
libjack-dev
libmad0-dev
libpulse-dev
libudev-dev
libusb-dev
libxinerama-dev
libx11-dev
libxrandr-dev
libxtst-dev
nasm
- name: Configure
run: cmake -B build -DWITH_FFMPEG_JOBS="$(nproc)"
- name: Build
run: cmake --build build --parallel "$(nproc)"
macos-build-arm64:
name: macOS (M1)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-cmake-build-
- name: Install dependencies
run: brew install
nasm
- name: Configure
run: cmake -B build -DCMAKE_OSX_ARCHITECTURES=arm64 -DWITH_FFMPEG_JOBS="$(sysctl -n hw.logicalcpu)"
- name: Build
run: cmake --build build --parallel "$(sysctl -n hw.logicalcpu)"
macos-build-x86_64:
name: macOS (Intel)
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Cache CMake build directory
uses: actions/cache@v4
with:
path: |
build
key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-cmake-build-
- name: Install dependencies
run: brew install
nasm
- name: Configure
run: cmake -B build -DCMAKE_OSX_ARCHITECTURES=x86_64 -DWITH_FFMPEG_JOBS="$(sysctl -n hw.logicalcpu)"
- name: Build
run: cmake --build build --parallel "$(sysctl -n hw.logicalcpu)"
windows-build:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Set up Visual Studio environment
run: |
$vsPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
&"$vsPath\VC\Auxiliary\Build\vcvarsall.bat" x64
shell: pwsh
- name: Configure
run: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
- name: Build
run: cmake --build build --parallel "$env:NUMBER_OF_PROCESSORS"
validate-xml-docs:
name: Validate Lua.xml, LuaDocumentation.xml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y
libxml2-utils
- name: Validate Lua.xml
run: xmllint --noout Docs/Luadoc/Lua.xml
- name: Validate LuaDocumentation.xml
run: xmllint --noout Docs/Luadoc/LuaDocumentation.xml