Skip to content

use C++20

use C++20 #131

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install clang-format swift-format
- name: Lint
run: ./scripts/lint.sh
build:
needs: lint
runs-on: macos-15
env:
MOZC_SHA: 14afac9728dd3f04e3d73633f4fa925d38589368
strategy:
fail-fast: false
matrix:
include:
- { platform: SIMULATORARM64 }
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/checkout@v4
with:
submodules: recursive
repository: google/mozc
path: engines/fcitx5-mozc/mozc
ref: ${{ env.MOZC_SHA }}
- name: Install dependencies
run: |
brew install \
nlohmann-json \
extra-cmake-modules
./scripts/install-deps.sh ${{ matrix.platform }}
wget https://github.com/fcitx-contrib/fcitx5-prebuilder/releases/download/macos/marisa-$(uname -m).tar.bz2
sudo tar xf marisa-$(uname -m).tar.bz2 -C /usr/local bin/marisa-build
- name: Build
run: |
git apply --directory=fcitx5 patches/fcitx5.patch
git apply --directory=engines/libime/src/libime/core/kenlm patches/kenlm.patch
git apply --directory=engines/fcitx5-rime patches/rime.patch
cmake -B build/${{ matrix.platform }} -G Xcode \
-DURL_SCHEME=fcitx \
-DHALLELUJAH=ON \
-DRIME=ON \
-DPLATFORM=SIMULATOR
cmake --build build/${{ matrix.platform }} --config Release
- name: Check validity
run: |
./scripts/check-validity.sh
- name: Install
if: ${{ matrix.platform == 'SIMULATORARM64' }}
run: |
xcrun simctl boot "iPhone 16"
xcrun simctl install booted build/${{ matrix.platform }}/src/Release-iphonesimulator/Fcitx5.app
xcrun simctl launch booted org.fcitx.Fcitx5
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3