Change something

This commit is contained in:
alexander
2025-12-14 20:46:50 +01:00
parent 024a49c08d
commit 9cff53b8d1
2 changed files with 19 additions and 5 deletions

View File

@@ -25,7 +25,21 @@ jobs:
submodules: false
lfs: false
- name: Show Typst & OS versions
run: |
typst --version || true
uname -a
- name: Debug Ls
run: ls -la "$PWD" && echo "$PWD"
- name: Compile all .typ files
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/typst/typst:0.14.2
options: -v "${{ github.workspace }}:/workspace -w /workspace"
run: "TYPST_SOURCE_DIR=${{ env.TYPST_SOURCE_DIR }} BUILD_DIR=${{ env.BUILD_DIR }} ls -laF
- name: Upload PDFs
if: always()
uses: actions/upload-artifact@v4
with:
name: typst-pdfs
path: ${{ env.BUILD_DIR }}/
if-no-files-found: warn

View File

@@ -26,5 +26,5 @@ for f in "${files[@]}"; do
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
echo "Compiling: $f -> $dest_pdf"
docker run --rm -v "$PWD":/work ghcr.io/typst/typst:latest compile "/work/$f" "/work/$dest_pdf"
typst compile "$f" "$dest_pdf"
done