mirror of https://github.com/Nonannet/pyladoc.git
CI: added caching for latex and pip
This commit is contained in:
parent
c72a1e70c4
commit
6120a38241
|
@ -97,33 +97,30 @@ jobs:
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Cache MiKTeX Portable
|
- name: Cache MiKTeX Portable
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
id: miktex
|
||||||
with:
|
with:
|
||||||
path: miktex-portable
|
path: miktex-portable
|
||||||
key: miktex-portable-${{ runner.os }}-24.1-x64
|
key: miktex-portable-${{ runner.os }}-24.1-x64
|
||||||
|
|
||||||
- name: Set up MiKTeX Portable
|
- if: ${{ steps.miktex.outputs.cache-hit != 'true' }}
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
name: Set up MiKTeX Portable
|
||||||
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 .
|
||||||
|
|
||||||
- name: Check directory structure of MiKTeX installation
|
- name: Copy miktex directory
|
||||||
run: |
|
run: |
|
||||||
dir ".\miktex-portable\texmfs\install\miktex\bin\x64\*"
|
robocopy miktex-portable C:\tmp\test_miktex\miktex-portable /E /NFL /NDL
|
||||||
|
if ($LASTEXITCODE -eq 1) { exit 0 }
|
||||||
|
|
||||||
- name: Add miktex to PATH
|
- name: Add miktex to PATH
|
||||||
run: |
|
run: |
|
||||||
echo "PATH=$PATH;$(pwd)\miktex-portable\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_ENV -Append
|
echo "PATH=$PATH;C:\tmp\test_miktex\miktex-portable\texmfs\install\miktex\bin\x64;C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||||
|
|
||||||
- name: Show path variable
|
|
||||||
run: |
|
|
||||||
echo $env:PATH
|
|
||||||
echo "-----"
|
|
||||||
echo $env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: test xelatex
|
- name: test xelatex
|
||||||
run: xelatex --version
|
run: xelatex --version
|
||||||
|
@ -140,4 +137,4 @@ jobs:
|
||||||
if: strategy.job-index == 0
|
if: strategy.job-index == 0
|
||||||
with:
|
with:
|
||||||
name: rendering-results-windows
|
name: rendering-results-windows
|
||||||
path: tests/out/test_*_render*.pdf
|
path: tests/out/test_*_render*.pdf
|
||||||
|
|
Loading…
Reference in New Issue