Skip to content

Commit 2c06fd5

Browse files
committed
ci: add ci.yml
1 parent 88f174d commit 2c06fd5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
- "release/*"
8+
pull_request:
9+
branches:
10+
- "master"
11+
- "release/*"
12+
merge_group:
13+
types: [checks_requested]
14+
15+
env:
16+
RUST_VERSION: "1.88"
17+
CMAKE_GENERATOR: Ninja
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
name: Syntax Checks
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Setup dependencies
28+
run: |
29+
sudo apt-get install ninja-build
30+
rustup set auto-self-update disable
31+
rustup install ${{ env.RUST_VERSION }}
32+
rustup default ${{ env.RUST_VERSION }}
33+
cargo install --bin chewing-cli https://github.com/chewing/libchewing
34+
35+
- name: Build
36+
run: |
37+
cmake -B build
38+
cmake --build build

0 commit comments

Comments
 (0)