-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (28 loc) · 1.25 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
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: "setup linux build environment"
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo apt update; sudo apt install -y libgtk-3-dev libvterm-dev libvte-2.91-dev libsdl2-dev libfribidi-dev libuim-dev libfcitx5core-dev libfcitx5gclient-dev libscim-dev libssh2-1-dev curl
- name: "setup macos build environment"
if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install pkg-config
- name: "configure on linux"
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: (cd uitoolkit/wayland; sh ./rescanproto.sh); CFLAGS="-Wall -g -O2" ./configure --with-gui=xlib,fb,console,wayland,sdl2
- name: "configure on macos"
if: ${{ startsWith(matrix.os, 'macos') }}
run: CFLAGS="-Wall -g -O2" ./configure --with-gui=quartz
- name: "build on linux"
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: make; sudo make install; (cd gtk; make; sudo make install); (cd libvterm; make; sudo make install)
- name: "build on macos"
if: ${{ startsWith(matrix.os, 'macos') }}
run: make; sudo make install