-
Notifications
You must be signed in to change notification settings - Fork 16
145 lines (123 loc) · 4.1 KB
/
linux.yaml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Linux
on:
push:
branches: [ main ]
pull_request:
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc automake autoconf make libx11-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
./autogen.sh
./configure --with-no-install --enable-test
make
make tests
./run-tests
x11:
name: X11
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc make cmake libx11-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
mkdir build
cd build
env CFLAGS=-Wall cmake ..
make
ncurses:
name: NCurses
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc make cmake libncursesw5-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
mkdir build
cd build
env CFLAGS=-Wall cmake -DSUPPORT_GCU_FRONTEND=ON ..
make
sdl:
name: SDL
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc make cmake libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
mkdir build
cd build
env CFLAGS=-Wall cmake -DSUPPORT_SDL_FRONTEND=ON -DSUPPORT_SDL_SOUND=ON ..
make
sdl2:
name: SDL2
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc autoconf automake make libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
./autogen.sh
./configure --with-no-install --enable-sdl2 --enable-sdl2-mixer
make
statbuild:
name: Statistics Build
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc autoconf automake make libsqlite3-dev libsdl1.2-dev libsdl-mixer1.2-dev
- name: Clone Project
uses: actions/checkout@v3
# Build with some extra warnings. Add some that are only supported in
# more recent versions of GCC that the configure script won't enable.
# Also turn on sound and the test front end so more of the basic
# infrastructure is compiled.
- name: Build
run: |
./autogen.sh
env CFLAGS="-Wvla -Wlogical-op" ./configure --with-no-install --enable-stats --enable-test --enable-sdl-mixer
make
makefilestd:
name: Makefile.std
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc make libncursesw5-dev libx11-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev libsqlite3-dev
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
cd src
sed -e 's/^# SYS_x11 =/SYS_x11 =/' -e 's/^# SYS_sdl =/SYS_sdl=/' -e 's/^# SYS_stats =/SYS_stats =/' -e 's/^# SYS_stats_objs =/SYS_stats_objs =/' -e 's/^#SOUND_sdl =/SOUND_sdl =/' -e 's/^#SOUND_sdl_objs =/SOUND_sdl_objs =/' <Makefile.std >Makefile.std.modified
make -f Makefile.std.modified
make -f Makefile.std.modified clean
sed -e 's/^# SYS_sdl2 =/SYS_sdl2 =/' -e 's/^# SYS_sdl2_objs =/SYS_sdl2_objs =/' -e 's/^#SOUND_sdl2 =/SOUND_sdl2 =/' -e 's/^#SOUND_sdl_objs =/SOUND_sdl_objs =/' <Makefile.std >Makefile.std.modified
make -f Makefile.std.modified