11
11
push :
12
12
branches :
13
13
- master
14
- # - pong
15
- # - clean
16
- # - udp_demo
17
- # - ci
14
+ # - pong
15
+ # - clean
16
+ # - udp_demo
17
+ # - ci
18
18
19
- env :
20
- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
21
- BUILD_TYPE : Release
19
+ env :
20
+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
21
+ BUILD_TYPE : Release
22
22
23
- jobs :
24
- build :
25
- name : Standard Build
23
+ jobs :
24
+ build :
25
+ name : Standard Build
26
26
runs-on : ubuntu-latest
27
27
steps :
28
28
- name : Install SDL2 Dependencies
33
33
run : mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
34
34
- name : Build with CMake
35
35
run : cd build && make
36
- doxygen :
37
- name : Doxygen Build
36
+ doxygen :
37
+ name : Doxygen Build
38
38
permissions :
39
39
contents : write
40
40
pages : write
@@ -49,53 +49,59 @@ jobs:
49
49
50
50
- name : Install Doxygen Dependencies
51
51
run : sudo apt-get update && sudo apt-get install -y doxygen graphviz fonts-freefont-ttf
52
-
52
+
53
53
- name : Generate docs
54
54
shell : bash
55
55
run : mkdir -p build && cd build && cmake -DDOCS_ONLY=on .. && make docs
56
56
57
57
- name : Print warnings
58
58
run : |
59
59
if [[ -s "doxygen_warnings.txt" ]]; then
60
- echo "You must fix doxygen before submitting a pull request"
61
- echo "Build doxygen: 'cmake -DDOCS=ON .. & make docs'"
62
- echo ""
63
- cat doxygen_warnings.txt
64
- exit -1
65
- fi
66
-
60
+ echo "You must fix doxygen before submitting a pull request"
61
+ echo "Build doxygen : ' cmake -DDOCS=ON .. & make docs' "
62
+ echo " "
63
+ cat doxygen_warnings.txt
64
+ exit -1
65
+ fi
66
+
67
67
- name: Setup Pages
68
68
uses: actions/configure-pages@v3
69
69
70
70
- name: Upload artifact
71
71
uses: actions/upload-pages-artifact@v1
72
72
with:
73
73
path: docs/docs/html
74
-
74
+
75
75
- name: Deploy to GitHub Pages
76
76
id: deployment
77
77
uses: actions/deploy-pages@v2
78
-
79
- git_check :
80
- name : Run Git Check
78
+
79
+ git_check:
80
+ name: Run Git Check
81
81
runs-on: ubuntu-latest
82
82
steps:
83
83
- name: Checkout code
84
84
uses: actions/checkout@v2
85
85
- name: Run Check and Print Warning
86
86
run: |
87
87
if [[ -n $(git diff --check HEAD^) ]]; then
88
- echo "You must remove whitespace before submitting a pull request"
89
- echo ""
90
- git diff --check HEAD^
91
- exit -1
88
+ echo " You must remove whitespace before submitting a pull request"
89
+ echo ""
90
+ git diff --check HEAD^
91
+ exit -1
92
92
fi
93
- astyle_format :
94
- name : Run AStyle Format
93
+ astyle_format :
94
+ name : Run AStyle Format
95
95
runs-on : ubuntu-latest
96
96
steps :
97
97
- name : Install SDL2 Dependencies
98
- run : sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev astyle
98
+ run : |
99
+ sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev curl
100
+ curl -L https://sourceforge.net/projects/astyle/files/astyle/astyle%203.1/astyle_3.5.2_linux.tar.gz/download -o astyle.tar.gz
101
+ tar -xzf asyle.tar.gz
102
+ cd astyle/build/gcc
103
+ make
104
+ sudo make install
99
105
- name : Checkout code
100
106
uses : actions/checkout@v2
101
107
- name : Configure CMake
@@ -107,13 +113,13 @@ jobs:
107
113
- name : Print Warnings
108
114
run : |
109
115
if [[ -n $(git diff) ]]; then
110
- echo "You must run make format before submitting a pull request"
111
- echo ""
112
- git diff
113
- exit -1
116
+ echo "You must run make format before submitting a pull request"
117
+ echo ""
118
+ git diff
119
+ exit -1
114
120
fi
115
- clang_tidy :
116
- name : Run Clang Tidy
121
+ clang_tidy :
122
+ name : Run Clang Tidy
117
123
runs-on : ubuntu-latest
118
124
steps :
119
125
- name : Install SDL2 Dependencies
@@ -133,22 +139,22 @@ jobs:
133
139
- name : Print Warnings
134
140
run : |
135
141
if [[ -n $(grep "error: " build/output.txt) ]]; then
136
- echo "You must pass the clang tidy checks before submitting a pull request"
137
- echo "cmake -DENABLE_CLANG_TIDY=ON .. & make tidy"
138
- echo ""
139
- grep --color -E '^|error: ' build/output.txt
140
- exit -1
141
- elif [[ -n $(grep "warning: " build/output.txt) ]]; then
142
- echo "Warnings:"
143
- grep --color -E '^|warning: ' build/output.txt
144
- echo -e "\033[1;32m\xE2\x9C\x93 passed - with warnings\033[0m $1"
145
- exit 0
146
- else
147
- echo -e "\033[1;32m\xE2\x9C\x93 passed - no warnings\033[0m $1"
148
- exit 0
149
- fi
150
- cppcheck :
151
- name : Run CPPCheck
142
+ echo "You must pass the clang tidy checks before submitting a pull request"
143
+ echo "cmake -DENABLE_CLANG_TIDY=ON .. & make tidy"
144
+ echo ""
145
+ grep --color -E '^|error : ' build/output.txt
146
+ exit -1
147
+ elif [[ -n $(grep "warning: " build/output.txt) ]]; then
148
+ echo "Warnings:"
149
+ grep --color -E ' ^|warning: ' build/output.txt
150
+ echo -e "\033[1;32m\xE2\x9C\x93 passed - with warnings\033[0m $1"
151
+ exit 0
152
+ else
153
+ echo -e "\033[1;32m\xE2\x9C\x93 passed - no warnings\033[0m $1"
154
+ exit 0
155
+ fi
156
+ cppcheck :
157
+ name : Run CPPCheck
152
158
runs-on : ubuntu-latest
153
159
steps :
154
160
- name : Install SDL2 Dependencies
@@ -161,8 +167,8 @@ jobs:
161
167
run : cd build && make
162
168
- name : Run Checks
163
169
run : cd build && make check
164
- google_asan :
165
- name : Run Google Address Sanitizer
170
+ google_asan :
171
+ name : Run Google Address Sanitizer
166
172
runs-on : ubuntu-latest
167
173
steps :
168
174
- name : Install SDL2 Dependencies
@@ -181,8 +187,8 @@ jobs:
181
187
run : killall FreeRTOS_Emulator || echo "Nothing running..."
182
188
- name : Check for Errors
183
189
run : echo "TODO"
184
- google_usan :
185
- name : Run Google Undefined Sanitizer
190
+ google_usan :
191
+ name : Run Google Undefined Sanitizer
186
192
runs-on : ubuntu-latest
187
193
steps :
188
194
- name : Install SDL2 Dependencies
@@ -201,8 +207,8 @@ jobs:
201
207
run : killall FreeRTOS_Emulator || echo "Not running..."
202
208
- name : Check for Errors
203
209
run : echo "TODO"
204
- google_tsan :
205
- name : Run Google Thread Sanitizer
210
+ google_tsan :
211
+ name : Run Google Thread Sanitizer
206
212
runs-on : ubuntu-latest
207
213
steps :
208
214
- name : Install SDL2 Dependencies
@@ -221,8 +227,8 @@ jobs:
221
227
run : killall FreeRTOS_Emulator || echo "Not running..."
222
228
- name : Check for Errors
223
229
run : echo "TODO"
224
- codecov :
225
- name : Run Codecov
230
+ codecov :
231
+ name : Run Codecov
226
232
runs-on : ubuntu-latest
227
233
steps :
228
234
- name : Install SDL2 Dependencies
@@ -236,5 +242,5 @@ jobs:
236
242
- name : Setup Test
237
243
run : cd build && make test & sleep 20
238
244
- name : Publish to Codecov
239
- # run: bash <(curl -s https://codecov.io/bash)
240
- uses : codecov/codecov-action@v1
245
+ # run: bash <(curl -s https://codecov.io/bash)
246
+ uses : codecov/codecov-action@v1
0 commit comments