-
Notifications
You must be signed in to change notification settings - Fork 110
84 lines (70 loc) · 2.03 KB
/
unit.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
name: Unit
on: [push, pull_request]
jobs:
ubuntu_makefile_escape:
name: Unix makefile escape
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: '2.8.6'
- name: Setup Qt
uses: ConorMacBride/install-package@v1
with:
apt: libqt5svg5-dev qtbase5-dev qtbase5-dev-tools qttools5-dev-tools
- name: Build
run: |
xmake f --qt=/usr
xmake b test-escape
- name: Test
run: |
export QT_ASSUME_STDERR_HAS_CONSOLE=1
xmake r test-escape
generated_code_consistency_addon:
name: "Generated code consistency: add-on"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ConorMacBride/install-package@v1
with:
apt: luarocks
- name: Install Teal
run: |
sudo luarocks install tl
- name: Build
run: |
./addon/gen.sh
- name: Check
run: |
git diff --color --exit-code
imported_code_consistency_lua:
name: "Imported code consistency: Lua"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Lua
uses: actions/checkout@v4
with:
repository: lua/lua
ref: v5.4.6
path: lua
fetch-depth: 1
- name: Check
run: |
cd lua
find . \
-regextype egrep \
'(' -regex '.*\.(c|h|hpp)$' -a \
-not -path './testes/*' -a \
-not -name 'ltests.*' -a \
-not -name onelua.c ')' \
-exec echo checking {} ';' \
-exec diff --color {} ../libs/lua/lua/{} ';'