set_layout and set_candidates #1
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: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt install -y clang-format | |
- name: Lint | |
run: | | |
find include preview src -name '*.mm' -o -name '*.hpp' | xargs clang-format -Werror --dry-run | |
build: | |
needs: lint | |
runs-on: macos-13 | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86_64, arm64] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
./install-deps.sh ${{ matrix.arch }} | |
- name: Build | |
run: | | |
PKG_CONFIG_PATH=/tmp/fcitx5/lib/pkgconfig cmake -B build -G Ninja \ | |
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} \ | |
-DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 |