fix name conflict with rime for static build #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |