Skip to content

fix name conflict with rime for static build (#8) #31

fix name conflict with rime for static build (#8)

fix name conflict with rime for static build (#8) #31

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:24.10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt update
apt install -y ninja-build \
cmake \
clang \
pkg-config \
clang-format \
extra-cmake-modules \
gettext \
fcitx5-modules-dev \
libfcitx5core-dev \
libfcitx5utils-dev \
libfmt-dev \
libjson-c-dev \
marisa \
libmarisa-dev
- name: Lint
run: |
find src test -name '*.cpp' -o -name '*.h' | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"find src test -name '*.cpp' -o -name '*.h' | xargs clang-format -i"'"'.; false; }
- name: Build
run: |
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DFCITX_INSTALL_USE_FCITX_SYS_PATHS=ON
cmake --build build
cmake --install build
- name: Test
run:
ctest --output-on-failure --test-dir build
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3