-
Notifications
You must be signed in to change notification settings - Fork 61
66 lines (62 loc) · 1.61 KB
/
deploy-test.yml
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
name: Compilation check
on:
push:
branches:
- main
paths:
- '*.yaml' # root directory only
- '*.txt'
- 'opencc/**'
pull_request:
branches:
- main
paths:
- '*.yaml'
- '*.txt'
- 'opencc/**'
workflow_dispatch:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rime engine
run: |
sudo apt-get install ibus-rime -y
- name: Install rime-cantonese files
run: |
chmod u+x ./.ci/*
export rime_dir=~/.config/ibus/rime
./.ci/install-schema.sh
- name: Compile
run: |
chmod u+wx ~/.config/ibus/rime/*
rime_deployer --build ~/.config/ibus/rime 2> log.tmp
- name: Check
run: |
cat log.tmp
exit $(cat log.tmp | grep -c ^[EW])
check_jyutping_cpp:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
echo "Installing prerequisites..."
sudo apt-get install libboost-all-dev
- run: |
echo "Building checker from source..."
export LD_LIBRARY_PATH="/usr/lib/boost/lib"
g++ .ci/checker.cpp -o checker.o -Ofast -I/usr/include/boost -L/usr/lib/boost/lib -lboost_regex
chmod u+x ./checker.o
- run: |
echo "Checking jyut6ping3.dict.yaml"
time ./checker.o jyut6ping3.dict.yaml
check_jyutping_php:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
php .ci/verify.php