Skip to content

Commit

Permalink
fix win oldrel miktex error
Browse files Browse the repository at this point in the history
  • Loading branch information
JuKo007 committed Dec 19, 2023
1 parent fb05ea3 commit 4bb94f7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ jobs:
- name: Install Windows system dependencies
if: runner.os == 'Windows'
run: |
choco install miktex -y
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -Append -FilePath $Env:GITHUB_PATH
& "C:\Program Files\MiKTeX\miktex\bin\x64\initexmf.exe" --update-fndb
choco install miktex -y --no-progress
$miktexPath = "C:\Program Files\MiKTeX\miktex\bin\x64"
if (Test-Path $miktexPath) {
echo "$miktexPath" | Out-File -Append -FilePath $Env:GITHUB_PATH
& "$miktexPath\initexmf.exe" --update-fndb
} else {
Write-Error "MiKTeX installation path not found"
}
- name: Install macOS system dependencies
if: runner.os == 'macOS'
Expand Down

0 comments on commit 4bb94f7

Please sign in to comment.