-
Notifications
You must be signed in to change notification settings - Fork 25
54 lines (51 loc) · 1.34 KB
/
CI.yml
File metadata and controls
54 lines (51 loc) · 1.34 KB
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
# https://github.com/tingerrr/hydra/blob/main/.github/workflows/ci.yml
jobs:
test-matrix:
strategy:
matrix:
# https://typst-community.github.io/tytanic/reference/compat.html
# 0.2.2 -> 0.13.1
# 0.3.3 -> 0.14.2
tytanic: [0.2.2]
name: tytanic@${{ matrix.tytanic }}
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Install tytanic
uses: typst-community/setup-tytanic@v1
with:
tytanic-version: ${{ matrix.tytanic }}
- name: Versions
run: |
tt --version
- name: Test suite
run: |
tt run -F
docs-matrix:
strategy:
matrix:
typst: [0.13.1] #, 0.14.2]
name: Docs typst@${{ matrix.typst }}
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Install typst
uses: typst-community/setup-typst@v3
with:
typst-version: ${{ matrix.typst }}
- name: Versions
run: |
typst --version
- name: Build docs
run: | # make sure docs build without errors or warnings
typst compile advanced-docs/main.typ --root .