diff --git a/.gitea/workflows/build-script.yaml b/.gitea/workflows/build-script.yaml index f154630..556f598 100644 --- a/.gitea/workflows/build-script.yaml +++ b/.gitea/workflows/build-script.yaml @@ -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 diff --git a/compile-all.bash b/compile-all.bash index 0d16924..9675a09 100755 --- a/compile-all.bash +++ b/compile-all.bash @@ -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