-
Notifications
You must be signed in to change notification settings - Fork 173
82 lines (78 loc) · 2.3 KB
/
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
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
name: CI build
on:
push:
pull_request:
release:
types:
- created
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows MSVC 64 Bit",
os: windows-2022,
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
generators: "Visual Studio 17 2022",
msvc_arch: x64
}
- {
name: "Windows MSVC 32 Bit",
os: windows-2019,
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars32.bat",
generators: "Visual Studio 16 2019",
msvc_arch: Win32
}
- {
name: "Windows MinGW",
os: windows-2022,
cc: "gcc",
cxx: "g++",
generators: "MinGW Makefiles"
}
- {
name: "Ubuntu 20.04",
os: ubuntu-20.04
}
- {
name: "Ubuntu 22.04",
os: ubuntu-22.04
}
- {
name: "Ubuntu 24.04",
os: ubuntu-24.04
}
- {
name: "Mac OS Latest x86_64",
os: macos-latest,
osx_arch: x86_64
}
- {
name: "Mac OS Latest arm64",
os: macos-latest,
osx_arch: arm64
}
env:
CMAKE_GENERATOR: "${{ matrix.config.generators }}"
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- name: Ubuntu/Mac OS X/MinGW build
if: ${{ !contains( matrix.config.generators, 'Visual Studio' ) }}
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_ARCHITECTURES=${{ matrix.config.osx_arch }}"
cmake --build .
- name: MSVC build
if: contains( matrix.config.generators, 'Visual Studio' )
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DVVENC_OVERRIDE_COMPILER_CHECK=ON -A "${{ matrix.config.msvc_arch }}"
cmake --build . --config Release
shell: cmd