From c37eb8f52611a1771a82d459bd4ccc00d89edc6a Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 17:52:53 +0200 Subject: [PATCH 1/6] CI Script: path fixed --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6857ab..bce9604 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: - name: Add miktex to PATH run: | - echo "PATH=$PATH;$(pwd)\miktex-portable\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append + echo "PATH=$PATH;$(pwd)\miktex-portable\texmfs\install\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append - name: Show path variable run: | @@ -140,4 +140,4 @@ jobs: if: strategy.job-index == 0 with: name: rendering-results-windows - path: tests/out/test_*_render*.pdf \ No newline at end of file + path: tests/out/test_*_render*.pdf From 86448a63560640955c813ebea8760e538e3db324 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 18:47:34 +0200 Subject: [PATCH 2/6] CI Script: Cache ID set --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bce9604..66e4559 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,12 +100,13 @@ jobs: - name: Cache MiKTeX Portable uses: actions/cache@v4 + id: miktex with: path: miktex-portable key: miktex-portable-${{ runner.os }}-24.1-x64 - name: Set up MiKTeX Portable - if: steps.cache.outputs.cache-hit != 'true' + if: steps.miktex.outputs.cache-hit != 'true' run: | $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest https://www.nonan.net/w/files/miktex-portable-Win-x64.zip -OutFile miktex-portable-Win-x64.zip From 1ea75c52762f91344caf399c277f261e4166f228 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 20:09:50 +0200 Subject: [PATCH 3/6] ci.yml: robocops added to keep cached files immutable --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66e4559..6869909 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,13 +112,14 @@ jobs: Invoke-WebRequest https://www.nonan.net/w/files/miktex-portable-Win-x64.zip -OutFile miktex-portable-Win-x64.zip Expand-Archive miktex-portable-Win-x64.zip -DestinationPath . - - name: Check directory structure of MiKTeX installation + - name: Copy and check directory structure of MiKTeX installation run: | - dir ".\miktex-portable\texmfs\install\miktex\bin\x64\*" + robocopy miktex-portable miktex-run /E + dir ".\miktex-run\texmfs\install\miktex\bin\x64\*" - name: Add miktex to PATH run: | - echo "PATH=$PATH;$(pwd)\miktex-portable\texmfs\install\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append + echo "PATH=$PATH;$(pwd)\miktex-run\texmfs\install\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append - name: Show path variable run: | From f801568caac01a46dd8e93487305445dbae89ad3 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 20:29:14 +0200 Subject: [PATCH 4/6] Update ci.yml overwrite robocops exit code --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6869909..180e1fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,8 +114,8 @@ jobs: - name: Copy and check directory structure of MiKTeX installation run: | - robocopy miktex-portable miktex-run /E - dir ".\miktex-run\texmfs\install\miktex\bin\x64\*" + robocopy miktex-portable miktex-run /E /NFL + if ($LASTEXITCODE -ge 8) { exit $LASTEXITCODE } - name: Add miktex to PATH run: | From b7198feb9ab043387f6b8c3c64aff678009df0ba Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 20:41:05 +0200 Subject: [PATCH 5/6] Update ci.yml, overwrite exit code 1 with 0 for robocopy --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 180e1fe..084220f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,7 +115,7 @@ jobs: - name: Copy and check directory structure of MiKTeX installation run: | robocopy miktex-portable miktex-run /E /NFL - if ($LASTEXITCODE -ge 8) { exit $LASTEXITCODE } + if ($LASTEXITCODE -eq 1) { exit 0 } - name: Add miktex to PATH run: | From fc8bef3963d448597b145485edc5598e98a3d72a Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 9 Jun 2025 21:12:28 +0200 Subject: [PATCH 6/6] Update ci.yml: changed path of latex --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 084220f..f42c503 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,18 +114,12 @@ jobs: - name: Copy and check directory structure of MiKTeX installation run: | - robocopy miktex-portable miktex-run /E /NFL + robocopy miktex-portable C:\tmp\test_miktex\miktex-portable /E /NFL /NDL if ($LASTEXITCODE -eq 1) { exit 0 } - name: Add miktex to PATH run: | - echo "PATH=$PATH;$(pwd)\miktex-run\texmfs\install\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append - - - name: Show path variable - run: | - echo $env:PATH - echo "-----" - echo $env:GITHUB_ENV + echo "PATH=$PATH;C:\tmp\test_miktex\miktex-portable\texmfs\install\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append - name: test xelatex run: xelatex --version