-
Notifications
You must be signed in to change notification settings - Fork 620
105 lines (84 loc) · 2.64 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Build
on:
workflow_dispatch:
push:
branches: master
pull_request:
branches: master
jobs:
vs2019:
name: Build VS 2019, ${{ matrix.build_type }}, ${{ matrix.arch }}
runs-on: windows-2019
strategy:
matrix:
build_type: [Debug, RelWithDebInfo]
arch: [Win32, x64]
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -A ${{ matrix.arch }}
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config ${{ matrix.build_type }}
vs2017_xp:
name: Build VS 2017, Windows XP
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -A Win32 -T v141_xp
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config RelWithDebInfo
macos:
name: Build macOS AppleClang
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: |
brew install zlib libjpeg libpng sdl2
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build .
linux:
name: Build Linux, ${{ matrix.build_type }}
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: [Debug, RelWithDebInfo]
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: |
sudo apt-get update
sudo apt-get install libjpeg-dev libpng-dev zlib1g-dev libsdl2-dev
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build .