forked from behdad/glyphy
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.52 KB
/
linux-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
name: Linux CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Cache Harfbuzz
uses: actions/cache@v3
with:
path: harfbuzz-7.3.0
key: ${{ runner.os }}-build
- name: Install build dependencies
run: sudo apt install -y curl gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev make cmake automake autoconf libtool libharfbuzz-dev meson freeglut3-dev libglew-dev
- name: Download a recent harfbuzz archive
# TODO: Ubuntu 22.04 has harfbuzz < 4.0.0. Ubuntu 24.04 will have harfbuzz >= 4.0.0.
# The harfbuzz build will not be required when Github updates the runners.
run: curl -L https://github.com/harfbuzz/harfbuzz/releases/download/7.3.0/harfbuzz-7.3.0.tar.xz -O
- name: Decompress harfbuzz archive
run: tar xvf harfbuzz-7.3.0.tar.xz
- name: Configure harfbuzz build
run: cd harfbuzz-7.3.0; meson setup build
- name: Build harfbuzz
run: cd harfbuzz-7.3.0; meson compile -C build
- name: Install harfbuzz
run: cd harfbuzz-7.3.0; sudo meson install -C build
- name: Configure glyphy
run: ./autogen.sh
- name: Make glyphy
run: make
- name: Meson setup
run: meson setup build
- name: Meson compile
run: meson compile -C build
- name: Run Validator against default font
run: ./demo/glyphy-validate ./demo/default-font.ttf