Skip to content

Commit 18e9595

Browse files
committed
bring various settings up-to-date with the template, including manual style and using 0.12 for rendering
1 parent e317c84 commit 18e9595

File tree

15 files changed

+403
-51
lines changed

15 files changed

+403
-51
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
exit 1
4747
fi
4848
49+
- name: Install package locally
50+
run: just install-preview
51+
4952
- name: Build package
5053
run: |
5154
just doc

.github/workflows/tests.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
strategy:
1111
matrix:
1212
# add any other Typst versions that your package should support
13-
typst-version: ["0.11"]
13+
typst-version: ["0.11", "0.12"]
1414
# the docs don't need to build with all versions supported by the package;
1515
# the latest one is enough
1616
include:
17-
- typst-version: "0.11"
17+
- typst-version: "0.12"
1818
doc: 1
1919
runs-on: ubuntu-latest
2020
steps:
@@ -45,13 +45,28 @@ jobs:
4545
tag: ci-semi-stable
4646

4747
- name: Setup typst
48+
id: setup-typst
4849
uses: typst-community/setup-typst@v3
4950
with:
5051
typst-version: ${{ matrix.typst-version }}
5152

53+
- name: Install package locally
54+
run: just install-preview
55+
5256
- name: Run test suite
5357
run: just test
5458

59+
- name: Archive diffs
60+
uses: actions/upload-artifact@v4
61+
if: always()
62+
with:
63+
name: typst-${{ steps.setup-typst.outputs.typst-version }}-diffs
64+
path: |
65+
tests/**/diff/*.png
66+
tests/**/out/*.png
67+
tests/**/ref/*.png
68+
retention-days: 5
69+
5570
- name: Build docs
5671
if: ${{ matrix.doc }}
5772
run: just doc

Justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ doc:
1111
typst compile docs/manual.typ docs/manual.pdf
1212
for f in $(find gallery -maxdepth 1 -name '*.typ'); do \
1313
f="$(basename "$f" .typ)"; \
14-
typst c "gallery/$f.typ"; \
15-
typst c "gallery/$f.typ" "gallery/$f-solved.pdf" --input solution=true; \
14+
typst compile "gallery/$f.typ"; \
15+
typst compile "gallery/$f.typ" "gallery/$f-solved.pdf" --input solution=true; \
1616
done
1717

1818
mkdir -p tmp
19-
typst c --ppi 250 "gallery/example.typ" "tmp/example{n}.png"
20-
typst c --ppi 250 "gallery/example.typ" "tmp/example-solved{n}.png" --input solution=true
19+
typst compile --ppi 250 "gallery/example.typ" "tmp/example{n}.png"
20+
typst compile --ppi 250 "gallery/example.typ" "tmp/example-solved{n}.png" --input solution=true
2121
mv tmp/example1.png thumbnail.png
2222
mv tmp/example-solved1.png thumbnail-solved.png
2323
rm tmp/example*.png

0 commit comments

Comments
 (0)