Setup CICD
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 13s
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 13s
Ci Fix Fixed missing quotes Ci Fix Ci Fix: Why do i need to do this way? Ci Fix: Another try Ci Fix: Fixed "Fun" docker problem Ci Fix: ARAAAAAAGG Fuck my life fasdgrdtgjz5uj6rz65jztu5jzt6uujztnzt56zu7jzt65u Partial Ci cicd Change something Test mhmm test asd test ? asd ßsd asd asdasd asd asd ddd asd asd ddasd asd asd asd asd asd asd dddd asdd asddd asd
This commit is contained in:
@@ -3,11 +3,10 @@ name: Build Typst PDFs (Docker)
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "**" ]
|
||||||
|
|
||||||
# Change this to the folder that contains your .typ files (relative to repo root)
|
|
||||||
env:
|
env:
|
||||||
TYPST_SOURCE_DIR: src
|
TYPST_SOURCE_DIR: src
|
||||||
BUILD_DIR: build
|
BUILD_DIR: build
|
||||||
@@ -17,30 +16,38 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Run the whole job inside a Docker container that has Typst installed
|
# Run the whole job inside a Docker container that has Typst installed
|
||||||
container:
|
|
||||||
image: ghcr.io/typst/typst:latest
|
|
||||||
options: --user root
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
submodules: false
|
||||||
|
lfs: false
|
||||||
|
|
||||||
- name: Show Typst & OS versions
|
- name: Debug Ls
|
||||||
run: |
|
run: ls -la "$PWD" && echo "$PWD && echo ${{ github.workspace }}"
|
||||||
typst --version || true
|
|
||||||
uname -a
|
- name: Build Typst builder image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
tags: typst-builder-image:latest
|
||||||
|
push: false
|
||||||
|
|
||||||
- name: Compile all .typ files
|
- name: Compile all .typ files
|
||||||
shell: bash
|
uses: addnab/docker-run-action@v3
|
||||||
run: |
|
env:
|
||||||
TYPST_SOURCE_DIR="${TYPST_SOURCE_DIR}"
|
TYPST_SOURCE_DIR: ${{ env.TYPST_SOURCE_DIR }}
|
||||||
BUILD_DIR="${BUILD_DIR}"
|
BUILD_DIR: ${{ env.BUILD_DIR }}
|
||||||
./compile-all.bash
|
with:
|
||||||
|
image: typst-builder-image:latest
|
||||||
|
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
|
||||||
|
cwd: ${{ github.workspace }}
|
||||||
|
run: "cd ${{ github.workspace }} && TYPST_SOURCE_DIR=${{ env.TYPST_SOURCE_DIR }} BUILD_DIR=${{ env.BUILD_DIR }} bash -c ./compile-all.bash"
|
||||||
|
|
||||||
- name: Upload PDFs
|
- name: Upload PDFs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: typst-pdfs
|
name: typst-pdfs
|
||||||
path: ${{ env.BUILD_DIR }}/
|
path: ${{ env.BUILD_DIR }}/*.pdf
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|||||||
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"label": "Compile All",
|
"label": "Compile All",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "./compile-all.bash",
|
"command": "TYPST_SOURCE_DIR=src BUILD_DIR=output ./compile-all.bash",
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
|
|||||||
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM ghcr.io/typst/typst:latest
|
||||||
|
|
||||||
|
RUN apk add --no-cache bash
|
||||||
@@ -11,6 +11,7 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$OUT_DIR"
|
mkdir -p "$OUT_DIR"
|
||||||
|
|
||||||
|
|
||||||
# Find all .typ files under $SRC_DIR (excluding hidden dirs)
|
# Find all .typ files under $SRC_DIR (excluding hidden dirs)
|
||||||
mapfile -d '' files < <(printf '%s\0' "$SRC_DIR"/*.typ 2>/dev/null)
|
mapfile -d '' files < <(printf '%s\0' "$SRC_DIR"/*.typ 2>/dev/null)
|
||||||
|
|
||||||
|
|||||||
7086
out/Analysis1.pdf
Normal file
7086
out/Analysis1.pdf
Normal file
File diff suppressed because one or more lines are too long
2471
out/Analysis_rewrite.pdf
Normal file
2471
out/Analysis_rewrite.pdf
Normal file
File diff suppressed because it is too large
Load Diff
@@ -862,7 +862,7 @@ endobj
|
|||||||
<<
|
<<
|
||||||
/Type /Font
|
/Type /Font
|
||||||
/Subtype /Type0
|
/Subtype /Type0
|
||||||
/BaseFont /XNAUBQ+NewCMMath-Book-Identity-H
|
/BaseFont /IZGNPX+LibertinusSerif-Bold-Identity-H
|
||||||
/Encoding /Identity-H
|
/Encoding /Identity-H
|
||||||
/DescendantFonts [87 0 R]
|
/DescendantFonts [87 0 R]
|
||||||
/ToUnicode 90 0 R
|
/ToUnicode 90 0 R
|
||||||
@@ -873,7 +873,7 @@ endobj
|
|||||||
<<
|
<<
|
||||||
/Type /Font
|
/Type /Font
|
||||||
/Subtype /CIDFontType0
|
/Subtype /CIDFontType0
|
||||||
/BaseFont /XNAUBQ+NewCMMath-Book
|
/BaseFont /IZGNPX+LibertinusSerif-Bold
|
||||||
/CIDSystemInfo <<
|
/CIDSystemInfo <<
|
||||||
/Registry (Adobe)
|
/Registry (Adobe)
|
||||||
/Ordering (Identity)
|
/Ordering (Identity)
|
||||||
@@ -881,7 +881,7 @@ endobj
|
|||||||
>>
|
>>
|
||||||
/FontDescriptor 89 0 R
|
/FontDescriptor 89 0 R
|
||||||
/DW 0
|
/DW 0
|
||||||
/W [0 0 500 1 1 389 2 2 970 3 3 278 4 4 412 5 5 389 6 6 278 7 7 778 8 8 1000 9 9 529 10 10 278 11 11 429 12 12 433 13 13 778 14 14 466 15 15 667 16 16 666 17 17 556 18 18 332 19 19 778 20 20 569 21 21 778 22 22 490 23 23 572 24 24 490 25 25 1000 26 27 422 28 28 722]
|
/W [0 0 500 1 1 817 2 2 505.99997 3 3 325 4 4 542 5 5 521 6 6 428 7 7 598 8 8 581 9 9 489 10 10 256 11 11 899 12 12 551 13 13 616 14 14 322 15 15 561 16 16 736 17 17 905 18 18 358 19 19 529 20 20 316 21 21 427 22 22 456 23 23 619 24 24 732 25 25 716 26 26 551 27 27 367 28 28 312 29 29 504]
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
@@ -891,162 +891,11 @@ endobj
|
|||||||
/Filter /FlateDecode
|
/Filter /FlateDecode
|
||||||
>>
|
>>
|
||||||
stream
|
stream
|
||||||
xœûÿÿÿ | |||||||