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,53 @@ 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 : sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev astyle=3.5.2
99
99
- name : Checkout code
100
100
uses : actions/checkout@v2
101
101
- name : Configure CMake
@@ -107,13 +107,13 @@ jobs:
107
107
- name : Print Warnings
108
108
run : |
109
109
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
110
+ echo "You must run make format before submitting a pull request"
111
+ echo ""
112
+ git diff
113
+ exit -1
114
114
fi
115
- clang_tidy :
116
- name : Run Clang Tidy
115
+ clang_tidy :
116
+ name : Run Clang Tidy
117
117
runs-on : ubuntu-latest
118
118
steps :
119
119
- name : Install SDL2 Dependencies
@@ -133,22 +133,22 @@ jobs:
133
133
- name : Print Warnings
134
134
run : |
135
135
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
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
152
152
runs-on : ubuntu-latest
153
153
steps :
154
154
- name : Install SDL2 Dependencies
@@ -161,8 +161,8 @@ jobs:
161
161
run : cd build && make
162
162
- name : Run Checks
163
163
run : cd build && make check
164
- google_asan :
165
- name : Run Google Address Sanitizer
164
+ google_asan :
165
+ name : Run Google Address Sanitizer
166
166
runs-on : ubuntu-latest
167
167
steps :
168
168
- name : Install SDL2 Dependencies
@@ -181,8 +181,8 @@ jobs:
181
181
run : killall FreeRTOS_Emulator || echo "Nothing running..."
182
182
- name : Check for Errors
183
183
run : echo "TODO"
184
- google_usan :
185
- name : Run Google Undefined Sanitizer
184
+ google_usan :
185
+ name : Run Google Undefined Sanitizer
186
186
runs-on : ubuntu-latest
187
187
steps :
188
188
- name : Install SDL2 Dependencies
@@ -201,8 +201,8 @@ jobs:
201
201
run : killall FreeRTOS_Emulator || echo "Not running..."
202
202
- name : Check for Errors
203
203
run : echo "TODO"
204
- google_tsan :
205
- name : Run Google Thread Sanitizer
204
+ google_tsan :
205
+ name : Run Google Thread Sanitizer
206
206
runs-on : ubuntu-latest
207
207
steps :
208
208
- name : Install SDL2 Dependencies
@@ -221,8 +221,8 @@ jobs:
221
221
run : killall FreeRTOS_Emulator || echo "Not running..."
222
222
- name : Check for Errors
223
223
run : echo "TODO"
224
- codecov :
225
- name : Run Codecov
224
+ codecov :
225
+ name : Run Codecov
226
226
runs-on : ubuntu-latest
227
227
steps :
228
228
- name : Install SDL2 Dependencies
@@ -236,5 +236,5 @@ jobs:
236
236
- name : Setup Test
237
237
run : cd build && make test & sleep 20
238
238
- name : Publish to Codecov
239
- # run: bash <(curl -s https://codecov.io/bash)
240
- uses : codecov/codecov-action@v1
239
+ # run: bash <(curl -s https://codecov.io/bash)
240
+ uses : codecov/codecov-action@v1
0 commit comments