Skip to content

Commit 252451f

Browse files
committed
fix ?
1 parent 497c8e9 commit 252451f

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

.github/workflows/serve-ximera-split.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
image: ghcr.io/ximeraproject/ximeralatex:v2.7.5fix2
2525
options: >-
2626
--workdir /code
27-
--user 1000:1000
2827
permissions:
2928
actions: read
3029
contents: read
@@ -35,7 +34,6 @@ jobs:
3534
uses: actions/checkout@v4
3635
with:
3736
fetch-depth: 0
38-
persist-credentials: true
3937

4038
# Restore cache for cross-run speedup
4139
- name: "Prepare: Restore cache"
@@ -61,25 +59,9 @@ jobs:
6159
6260
- name: "XIMERA: pdfexport (prepare for tikzpictures)"
6361
run: |
64-
# git config --global --add safe.directory /__w/calculus/calculus
62+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
6563
xmlatex bake --compile pdfexport -j 5 $XM_TO_PROCESS
6664
67-
# # Save cache for future runs
68-
# - uses: actions/cache/save@v4
69-
# with:
70-
# path: |
71-
# **/*.pdf
72-
# **/*.html
73-
# **/*.aux
74-
# **/*.log
75-
# **/*.toc
76-
# **/*.xref
77-
# **/*.svg
78-
# **/*.png
79-
# !.git/**
80-
# !.github/**
81-
# key: ximeraPDFexport-${{ github.ref_name }}-latest
82-
8365
# Upload artifact for next job
8466
- name: "Postprocess: Save artifacts"
8567
uses: actions/upload-artifact@v4
@@ -102,7 +84,6 @@ jobs:
10284
- name: "Prepare: Checkout code"
10385
uses: actions/checkout@v4
10486
with:
105-
persist-credentials: true
10687
fetch-depth: 0
10788

10889
# Download artifact from previous job
@@ -114,8 +95,7 @@ jobs:
11495

11596
- name: "XIMERA: htmlexport (generate html)"
11697
run: |
117-
git config --global --add safe.directory /__w/calculus/calculus
118-
export TEXMFHOME=/root/texmf
98+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
11999
xmlatex bake --compile htmlexport -j 5 $XM_TO_PROCESS
120100
121101
# Save cache
@@ -169,8 +149,7 @@ jobs:
169149
- name: "XIMERA: Serve PREVIEW version to ximeraserver"
170150
run: |
171151
echo "Serving to $XIMERA_URL$XIMERA_NAME"
172-
git config --global --add safe.directory /__w/calculus/calculus
173-
export TEXMFHOME=/root/texmf
152+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
174153
xmlatex name
175154
xmlatex frost $XM_TO_PROCESS
176155
xmlatex serve $XM_TO_PROCESS

0 commit comments

Comments
 (0)