Change something
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user