File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
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
21
+ check :
22
+ name : Build and test
23
+ needs : clang-format
24
+ runs-on : ubuntu-latest
25
+ container : archlinux:latest
26
+ strategy :
27
+ fail-fast : false
28
+ matrix :
29
+ compiler : [gcc, clang]
30
+ include :
31
+ - compiler : gcc
32
+ cxx_compiler : g++
33
+ - compiler : clang
34
+ cxx_compiler : clang++
35
+ env :
36
+ CC : ${{ matrix.compiler }}
37
+ CXX : ${{ matrix.cxx_compiler }}
38
+ steps :
39
+ - name : Install dependencies
40
+ run : |
41
+ pacman -Syu --noconfirm base-devel clang cmake ninja extra-cmake-modules fmt libuv git gtk2 gtk3 gtk4 libx11 gobject-introspection
42
+ - uses : actions/checkout@v4
43
+ with :
44
+ path : fcitx5-gtk
45
+ - name : Init CodeQL
46
+ uses : github/codeql-action/init@v3
47
+ with :
48
+ languages : cpp
49
+ source-root : fcitx5-gtk
50
+ - name : Build and Install fcitx5-gtk
51
+ uses : fcitx/github-actions@cmake
52
+ with :
53
+ path : fcitx5-gtk
54
+ cmake-option : >-
55
+ -DENABLE_GIR=On
56
+ -DENABLE_GTK2_IM_MODULE=On
57
+ -DENABLE_GTK3_IM_MODULE=On
58
+ -DENABLE_GTK4_IM_MODULE=On
59
+ - name : CodeQL Analysis
60
+ uses : github/codeql-action/analyze@v2
You can’t perform that action at this time.
0 commit comments