Skip to content

position and style

position and style #7

Workflow file for this run

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: |
brew install ninja
./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