-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.05 KB
/
ci.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
name: ci
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
C:/msys64/usr/bin/pacman -Syu --noconfirm
C:/msys64/usr/bin/pacman -S --noconfirm `
mingw-w64-ucrt-x86_64-extra-cmake-modules `
cmake `
fmt `
gcc `
libuv `
msys2-runtime-devel `
ninja
Add-Content $env:GITHUB_PATH "C:/msys64/usr/bin"
- name: Build
run: |
pushd fcitx5 && git apply ../patches/fcitx5.patch && popd
cmake -B build -G Ninja `
-DCMAKE_BUILD_TYPE=Release
cmake --build build || true
cp build/fcitx5/src/lib/fcitx-utils/msys-Fcitx5Utils-2.dll build/fcitx5/src/modules/spell
cmake --build build
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3