Skip to content

Commit 2bdabac

Browse files
committed
CI/CD update
1 parent 08fc2f7 commit 2bdabac

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

.github/workflows/CI.yml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,48 @@ on:
77
branches:
88
- '**'
99

10+
# https://github.com/tingerrr/hydra/blob/main/.github/workflows/ci.yml
1011
jobs:
11-
tests:
12+
test-matrix:
13+
strategy:
14+
matrix:
15+
# https://typst-community.github.io/tytanic/reference/compat.html
16+
# 0.2.2 -> 0.13.0
17+
# 0.3.3 -> 0.14.2
18+
tytanic: [0.2.2]
19+
name: tytanic@${{ matrix.tytanic }}
1220
runs-on: ubuntu-latest
21+
if: github.event.pull_request.draft == false
1322
steps:
14-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
1524
- name: Install tytanic
16-
uses: baptiste0928/cargo-install@v3
25+
uses: typst-community/setup-tytanic@v1
1726
with:
18-
crate: tytanic
19-
git: https://github.com/tingerrr/tytanic.git
20-
- uses: typst-community/setup-typst@v3
27+
tytanic-version: ${{ matrix.tytanic }}
28+
- name: Versions
29+
run: |
30+
tt --version
31+
- name: Test suite
32+
run: |
33+
tt run -F
34+
docs-matrix:
35+
strategy:
36+
matrix:
37+
typst: [0.13.1] #, 0.14.2]
38+
name: Docs typst@${{ matrix.typst }}
39+
runs-on: ubuntu-latest
40+
if: github.event.pull_request.draft == false
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Install typst
44+
uses: typst-community/setup-typst@v3
2145
with:
22-
typst-version: '0.13.1'
23-
- run: |
46+
typst-version: ${{ matrix.typst }}
47+
- name: Versions
48+
run: |
2449
typst --version
25-
tt --version
26-
tt run -F
50+
- name: Build docs
51+
run: | # make sure docs build without errors or warnings
52+
typst compile advanced-docs/main.typ --root .
53+
54+

0 commit comments

Comments
 (0)