-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (44 loc) · 1.2 KB
/
build.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
name: build
on:
push:
paths-ignore:
- 'doc/**'
- 'README.md'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Install dependencies
run: |
sudo apt install -y librime-dev
- name: Lint
run: cargo clippy -- -D warnings
- name: Build
run: |
cargo build --release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- uses: MinoruSekine/[email protected]
with:
buckets: extras
- name: Install dependencies
shell: bash
run: |
set -eux -o pipefail
scoop install wget
wget https://github.com/rime/librime/releases/download/1.11.2/rime-5b09f35-Windows-msvc-x64.7z -O rime.7z
7z x rime.7z
LIBRIME_INCLUDE_DIR=$PWD/dist/include LIBRIME_LIB_DIR=$PWD/dist/lib LIB=$PWD/dist/lib cargo build --release