-
Notifications
You must be signed in to change notification settings - Fork 10
80 lines (71 loc) · 2.19 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
- 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