File tree 2 files changed +20
-5
lines changed
2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,26 @@ jobs:
71
71
exit 2
72
72
fi
73
73
74
- # install X11 headers
75
- sudo apt-get install --yes --no-install-recommends libx11-dev
74
+ # get required header files
75
+ sudo apt-get install --yes --no-install-recommends \
76
+ libx11-dev \
77
+ liblua5.1-dev \
78
+ liblua5.2-dev \
79
+ liblua5.3-dev \
80
+ liblua5.4-dev \
81
+ libluajit-5.1-dev
76
82
77
83
shopt -s nullglob
78
84
files=(src/*.c src/**/*.c include/*.h include/**/*.h)
79
85
if [[ "${#files[@]}" -eq 0 ]]; then
80
86
echo "No files found"
81
87
exit 1
82
88
fi
83
- clang-tidy-18 --extra-arg="-I.lua/include" --warnings-as-errors="*" "${files[@]}"
89
+ clang-tidy-18 --warnings-as-errors="*" --extra-arg="-I/usr/include/lua5.1" "${files[@]}"
90
+ clang-tidy-18 --warnings-as-errors="*" --extra-arg="-I/usr/include/lua5.2" "${files[@]}"
91
+ clang-tidy-18 --warnings-as-errors="*" --extra-arg="-I/usr/include/lua5.3" "${files[@]}"
92
+ clang-tidy-18 --warnings-as-errors="*" --extra-arg="-I/usr/include/lua5.4" "${files[@]}"
93
+ clang-tidy-18 --warnings-as-errors="*" --extra-arg="-I/usr/include/luajit-2.1" "${files[@]}"
84
94
85
95
- name : Set up Lua
86
96
uses : luarocks/gh-actions-lua@master
@@ -136,6 +146,10 @@ jobs:
136
146
# Will be ignored on non-Windows platforms anyway, but it's better to just skip it
137
147
if : matrix.os == 'windows-latest'
138
148
149
+ - name : Set up X11
150
+ if : matrix.os == 'ubuntu-latest'
151
+ run : sudo apt-get install --yes --no-install-recommends libx11-dev
152
+
139
153
- name : Set up Lua
140
154
uses : luarocks/gh-actions-lua@master
141
155
with :
Original file line number Diff line number Diff line change 24
24
luaL_checkinteger(L, arg))
25
25
26
26
#define luaL_optinteger (L , arg , def ) \
27
- (lua_isnoneornil(L, arg) ? def : luaL_checkinteger(L, arg))
27
+ (lua_isnoneornil(L, arg) ? ( def) : luaL_checkinteger(L, arg))
28
28
29
29
#endif
30
30
@@ -629,6 +629,7 @@ FENSTER_EXPORT int luaopen_fenster(lua_State *L) {
629
629
luaL_setfuncs (L , window_methods , 0 );
630
630
631
631
// create and return the fenster Lua module
632
- luaL_newlib (L , lfenster_functions );
632
+ luaL_newlib ( // NOLINT(readability-math-missing-parentheses)
633
+ L , lfenster_functions );
633
634
return 1 ;
634
635
}
You can’t perform that action at this time.
0 commit comments