refactor(InputMacro): introduce InputMacro classes for grouping #354
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, pull_request] | |
jobs: | |
build_ubuntu_22: | |
runs-on: ubuntu-latest | |
container: ubuntu:22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt install -y clang | |
apt install -y cmake extra-cmake-modules gettext libfmt-dev | |
apt install -y fcitx5 libfcitx5core-dev libfcitx5config-dev libfcitx5utils-dev | |
- name: Build | |
run: | | |
mkdir -p build | |
cd build | |
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug | |
make -j | |
cd ../ | |
mkdir -p src/Engine/build | |
cd src/Engine/build | |
cmake ../ | |
make -j | |
- name: Test | |
run: | | |
cd build | |
ctest --output-on-failure | |
build_ubuntu_20: | |
runs-on: ubuntu-latest | |
container: ubuntu:20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt install -y clang | |
apt install -y cmake extra-cmake-modules gettext libfmt-dev | |
apt install -y fcitx5 libfcitx5core-dev libfcitx5config-dev libfcitx5utils-dev | |
apt install -y libicu-dev | |
- name: Build | |
run: | | |
mkdir -p build | |
cd build | |
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DUSE_LEGACY_FCITX5_API=1 -DCMAKE_BUILD_TYPE=Debug | |
make -j | |
- name: Test | |
run: | | |
cd build | |
ctest --output-on-failure | |
build_archlinux: | |
runs-on: ubuntu-latest | |
container: ghcr.io/xatier/arch-dev:latest | |
steps: | |
- name: Checkout | |
run: | | |
export HOME=/home/xatier | |
cd /home/xatier | |
echo "cloning $GITHUB_SERVER_URL/$GITHUB_REPOSITORY into $PWD $GITHUB_SHA" | |
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" | |
cd /home/xatier/fcitx5-mcbopomofo | |
git fetch origin "$GITHUB_REF" ||: | |
git checkout "$GITHUB_SHA" | |
- name: Build | |
run: | | |
export HOME=/home/xatier | |
cd /home/xatier/fcitx5-mcbopomofo/distro/archlinux/ | |
sudo pacman -Syy | |
makepkg -s --noconfirm |