File tree 1 file changed +17
-14
lines changed
1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
2
on :
4
3
push :
5
4
branches :
6
5
- master
7
6
pull_request :
8
7
branches :
9
8
- master
10
-
11
9
jobs :
10
+ clang-format :
11
+ name : Check clang-format
12
+ runs-on : ubuntu-latest
13
+ container : archlinux:latest
14
+ steps :
15
+ - name : Install dependencies
16
+ run : |
17
+ pacman -Syu --noconfirm git clang diffutils
18
+ git config --global --add safe.directory $GITHUB_WORKSPACE
19
+ - uses : actions/checkout@v4
20
+ - uses : fcitx/github-actions@clang-format
12
21
check :
13
22
name : Build and test
23
+ needs : clang-format
14
24
runs-on : ubuntu-latest
15
25
container : archlinux:latest
16
26
strategy :
@@ -37,20 +47,15 @@ jobs:
37
47
uses : actions/cache@v4
38
48
with :
39
49
path : ' fcitx5/**/*.tar.*'
40
- key : ${{ runner.os }}-${{ hashFiles('fcitx5/src/modules/spell/CMakeLists.txt') }}
50
+ key : ${{ runner.os }}-${{ hashFiles('fcitx5/src/modules/spell/CMakeLists.txt')
51
+ }}
41
52
- name : Build and Install fcitx5
42
53
uses : fcitx/github-actions@cmake
43
54
with :
44
55
path : fcitx5
45
56
cmake-option : >-
46
- -DENABLE_KEYBOARD=Off
47
- -DENABLE_X11=Off
48
- -DENABLE_WAYLAND=Off
49
- -DENABLE_ENCHANT=Off
50
- -DENABLE_DBUS=Off
51
- -DENABLE_SERVER=Off
52
- -DENABLE_EMOJI=Off
53
- -DUSE_SYSTEMD=Off
57
+ -DENABLE_KEYBOARD=Off -DENABLE_X11=Off -DENABLE_WAYLAND=Off -DENABLE_ENCHANT=Off
58
+ -DENABLE_DBUS=Off -DENABLE_SERVER=Off -DENABLE_EMOJI=Off -DUSE_SYSTEMD=Off
54
59
- uses : actions/checkout@v4
55
60
with :
56
61
repository : fcitx/fcitx5-qt
61
66
repository : fcitx/fcitx5-qt
62
67
path : fcitx5-qt
63
68
cmake-option : >-
64
- -DENABLE_QT4=Off
65
- -DENABLE_QT5=Off
66
- -DENABLE_QT6=On
69
+ -DENABLE_QT4=Off -DENABLE_QT5=Off -DENABLE_QT6=On
67
70
- uses : actions/checkout@v4
68
71
with :
69
72
path : fcitx5-skk
You can’t perform that action at this time.
0 commit comments