ci script changed to absolut cache path

This commit is contained in:
Nicolas 2025-09-09 23:56:52 +02:00
parent 854e59cd55
commit 62ab85922f
1 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
id: miktex id: miktex
with: with:
path: miktex-portable path: C:\tmp\cache
key: miktex-portable-${{ runner.os }}-24.1-x64 key: miktex-portable-${{ runner.os }}-24.1-x64
- if: ${{ steps.miktex.outputs.cache-hit != 'true' }} - if: ${{ steps.miktex.outputs.cache-hit != 'true' }}
@ -111,11 +111,11 @@ jobs:
run: | run: |
$ProgressPreference = 'SilentlyContinue' $ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest https://www.nonan.net/w/files/miktex-portable-Win-x64.zip -OutFile miktex-portable-Win-x64.zip 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 . Expand-Archive miktex-portable-Win-x64.zip -DestinationPath C:\tmp\cache\
- name: Copy miktex directory - name: Copy miktex directory
run: | run: |
robocopy miktex-portable C:\tmp\test_miktex\miktex-portable /E /NFL /NDL robocopy C:\tmp\cache\miktex-portable C:\tmp\test_miktex\miktex-portable /E /NFL /NDL
if ($LASTEXITCODE -eq 1) { exit 0 } if ($LASTEXITCODE -eq 1) { exit 0 }
- name: Add miktex to PATH - name: Add miktex to PATH