forked from google/mozc
-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (43 loc) · 1.18 KB
/
fcitx4.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
name: CI
on:
push:
branches:
- fcitx
pull_request:
branches:
- fcitx
jobs:
check:
name: Build and test
runs-on: ubuntu-latest
container: archlinux:latest
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
include:
- compiler: gcc
cxx_compiler: g++
- compiler: clang
cxx_compiler: clang++
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.cxx_compiler }}
steps:
- name: Setup User
run: |
useradd -m builduser
- name: Install dependencies
run: |
pacman -Syu --noconfirm base-devel clang cmake ninja extra-cmake-modules fmt libuv boost git qt6-base qt6-wayland libxkbcommon qt6-webengine bazel fcitx python
- uses: actions/checkout@v4
with:
path: mozc
submodules: true
- name: Build fcitx-mozc
shell: bash
run: |
cd mozc/src/
chown -R builduser:builduser .
sudo -u builduser env _BUILD_TARGETS=unix/fcitx:fcitx-mozc.so ../scripts/build_fcitx_bazel --cxxopt=-Wno-uninitialized --host_cxxopt=-Wno-uninitialized
chown -R root:root .