Skip to content

Commit

Permalink
ci: Windows build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vasylskorych committed Oct 1, 2023
1 parent e2f26c8 commit 9ce9a1b
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env:
SUNDIALS_VERSION: 6.4.1
HDF5_VERSION: 1.12.2
GRAPHVIZ_VERSION: 7.0.4
MIKTEX_VERSION: 23.5

jobs:
build:
Expand Down Expand Up @@ -189,12 +190,24 @@ jobs:
- name: Install Sphinx
run: pip install -U sphinx sphinx-rtd-theme breathe

- name: Cache MiKTeX
id: cache-miktex
uses: actions/cache@v3
with:
path: "C:\Program Files\MiKTeX"
key: ${{runner.os}}-MiKTeXCache-${{env.MIKTEX_VERSION}}

- name: Install MiKTeX
if: steps.cache-miktex.outputs.cache-hit != 'true'
shell: pwsh
run: |
choco install miktex
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
refreshenv
choco install miktex.install --version ${{env.MIKTEX_VERSION}} -y
C:\Program Files\MiKTeX\miktex\bin\x64\latex --version
latex --version
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
latex --version
Add-Content $env:GITHUB_PATH "C:\Program Files\MiKTeX\miktex\bin\x64"
latex --version
initexmf --admin --verbose --set-config-value=[MPM]AutoInstall=1
miktex --admin --verbose packages update-package-database
miktex --admin --verbose packages update
Expand All @@ -203,6 +216,10 @@ jobs:
initexmf --admin --verbose --update-fndb
initexmf --admin --verbose --mklinks --force
updmap --admin
- name: Add MiKTeX to PATH
shell: pwsh
run: Add-Content $env:GITHUB_PATH "C:\Program Files\MiKTeX\miktex\bin\x64"

- name: Build Docs
working-directory: ${{github.workspace}}
Expand Down

0 comments on commit 9ce9a1b

Please sign in to comment.