Skip to content

Commit 4a33478

Browse files
committed
Add CI workflow for Typst compilation
1 parent b7299a6 commit 4a33478

File tree

2 files changed

+91
-7
lines changed

2 files changed

+91
-7
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- fix/*
8+
pull_request:
9+
branches:
10+
- main
11+
- fix/*
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v6
24+
25+
- name: Download fonts from fonts branch
26+
run: |
27+
git fetch origin fonts
28+
git checkout FETCH_HEAD -- fonts
29+
30+
- name: Setup Typst
31+
uses: typst-community/setup-typst@v4
32+
33+
- name: Compile thesis
34+
run: |
35+
typst compile init-files/main.typ thesis.pdf --root . --font-path ./fonts
36+
37+
- name: Upload PDF
38+
uses: actions/upload-artifact@v5
39+
with:
40+
name: thesis-pdf
41+
path: thesis.pdf
42+
retention-days: 30

.gitignore

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,52 @@
1-
# General
2-
.vscode
3-
.idea
4-
_things
5-
desktop.ini
6-
.DS_Store
1+
# Logs and databases #
2+
######################
3+
*.log
4+
*.sql
5+
*.sqlite
6+
7+
# OS generated files #
8+
######################
9+
.DS_Store?
10+
ehthumbs.db
11+
Icon?
12+
Thumbs.db
13+
*.DS_Store
14+
15+
# Xcode
16+
*.pbxuser
17+
*.mode1v3
18+
*.mode2v3
19+
*.perspectivev3
20+
*.xcuserstate
21+
project.xcworkspace/
22+
xcuserdata/
23+
24+
25+
# IDE
26+
*.idea
27+
*.iml
28+
29+
# Generated files
30+
/web-app/WEB-INF
31+
build/
32+
*.[oa]
33+
*.pyc
34+
35+
# Other source repository archive directories (protects when importing)
36+
.hg
37+
.svn
38+
CVS
39+
40+
# automatic backup files
41+
*~.nib
42+
*.swp
43+
*~
44+
*(Autosaved).rtfd/
45+
Backup[ ]of[ ]*.pages/
46+
Backup[ ]of[ ]*.key/
47+
Backup[ ]of[ ]*.numbers/
748

849
# Typst
950
*.pdf
10-
*test*
51+
fonts/*
52+
!fonts/README.md

0 commit comments

Comments
 (0)