Change something
This commit is contained in:
@@ -25,7 +25,21 @@ jobs:
|
|||||||
submodules: false
|
submodules: false
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
- name: Show Typst & OS versions
|
- name: Debug Ls
|
||||||
run: |
|
run: ls -la "$PWD" && echo "$PWD"
|
||||||
typst --version || true
|
|
||||||
uname -a
|
- 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
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ for f in "${files[@]}"; do
|
|||||||
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
|
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
|
||||||
|
|
||||||
echo "Compiling: $f -> $dest_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
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user