-
Notifications
You must be signed in to change notification settings - Fork 11
91 lines (77 loc) · 1.86 KB
/
build.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
on:
workflow_call:
inputs:
download_url:
default: false
type: boolean
check:
default: false
type: boolean
preview:
default: false
type: boolean
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup pnpm
if: inputs.preview
uses: pnpm/action-setup@v3
with:
version: '8.10.2'
- name: Bootstrap font builder
run: |
sudo apt install -y \
python3-setuptools \
ttfautohint \
build-essential \
libffi-dev \
libgit2-dev
make configure
- name: Bootstrap preview
if: inputs.preview
run: make configure-preview
- name: Build
run: make build
- name: Check
if: inputs.check
run: make check-sequential
- name: Lint
if: inputs.preview && inputs.check
run: make lint
- name: Build preview
if: inputs.preview
run: make build-preview
- name: Upload build
id: build-upload-step
uses: actions/upload-artifact@v4
with:
name: Lilex
path: build/
- name: Upload reports
if: inputs.check
uses: actions/upload-artifact@v4
with:
name: Reports
path: reports/
- name: Upload preview
if: inputs.preview
uses: actions/upload-artifact@v4
with:
name: Preview
path: preview/dist
- name: Output download URL
if: inputs.download_url
run: echo "${{ steps.build-upload-step.outputs.artifact-url }}" > download_url.txt
- name: Upload URL
if: inputs.download_url
uses: actions/upload-artifact@v4
with:
name: URL
path: download_url.txt