Skip to content

Commit 373a6f3

Browse files
committed
Add fcitx4 workflow
1 parent 3db6e34 commit 373a6f3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/fcitx4.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- fcitx
6+
pull_request:
7+
branches:
8+
- fcitx
9+
jobs:
10+
check:
11+
name: Build and test
12+
runs-on: ubuntu-latest
13+
container: archlinux:latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
compiler: [gcc, clang]
18+
include:
19+
- compiler: gcc
20+
cxx_compiler: g++
21+
- compiler: clang
22+
cxx_compiler: clang++
23+
env:
24+
CC: ${{ matrix.compiler }}
25+
CXX: ${{ matrix.cxx_compiler }}
26+
steps:
27+
- name: Setup User
28+
run: |
29+
useradd -m builduser
30+
- name: Install dependencies
31+
run: |
32+
pacman -Syu --noconfirm base-devel clang cmake ninja extra-cmake-modules fmt libuv boost git qt6-base qt6-wayland libxkbcommon qt6-webengine bazel fcitx
33+
- uses: actions/checkout@v4
34+
with:
35+
path: mozc
36+
submodules: true
37+
- name: Build fcitx-mozc
38+
shell: bash
39+
run: |
40+
cd mozc/src/
41+
chown -R builduser:builduser .
42+
_BUILD_TARGETS=unix/fcitx:fcitx-mozc.so sudo -u builduser ../scripts/build_fcitx5_bazel --cxxopt=-Wno-uninitialized --host_cxxopt=-Wno-uninitialized
43+
chown -R root:root .

0 commit comments

Comments
 (0)