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
repository : naokiri/cskk
78
81
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
79
82
- name : Build and install cskk
80
83
shell : bash
81
- run : |
82
- cd cskk
83
- cargo cinstall --release --prefix=/usr
84
+ run : " cd cskk\n cargo cinstall --release --prefix=/usr \n "
84
85
- uses : actions/checkout@v4
85
86
with :
86
87
path : fcitx5-cskk
94
95
with :
95
96
path : fcitx5-cskk
96
97
cmake-option : >-
97
- -DENABLE_QT=On
98
- -DUSE_QT6=On
98
+ -DENABLE_QT=On -DUSE_QT6=On
99
99
- name : Test
100
100
run : |
101
101
ctest --test-dir fcitx5-cskk/build
0 commit comments