Skip to content

Commit 752b46a

Browse files
authored
Update TinyTeX Windows/macOS installation in ci.yml to fix failing pipelines (#4679)
* Update TinyTeX installation method in CI workflow * Fix path execution for TinyTex Windows installer
1 parent 21cf999 commit 752b46a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ jobs:
104104
oriPath=$PATH
105105
sudo mkdir -p $PWD/macos-cache
106106
echo "Install TinyTeX"
107-
sudo curl -L -o "/tmp/TinyTeX.tgz" "https://github.com/yihui/tinytex-releases/releases/download/daily/TinyTeX-1.tgz"
108-
sudo tar zxf "/tmp/TinyTeX.tgz" -C "$PWD/macos-cache"
107+
sudo curl -L -o "/tmp/TinyTeX.tar.xz" "https://github.com/rstudio/tinytex-releases/releases/download/daily/TinyTeX-1-darwin.tar.xz"
108+
sudo tar xJf "/tmp/TinyTeX.tar.xz" -C "$PWD/macos-cache"
109109
export PATH="$PWD/macos-cache/TinyTeX/bin/universal-darwin:$PATH"
110110
sudo tlmgr update --self
111111
for i in "${ttp[@]}"; do
@@ -137,8 +137,8 @@ jobs:
137137
$tinyTexPackages = $(python -c "import json;print(' '.join(json.load(open('.github/manimdependency.json'))['windows']['tinytex']))") -Split ' '
138138
$OriPath = $env:PATH
139139
echo "Install Tinytex"
140-
Invoke-WebRequest "https://github.com/yihui/tinytex-releases/releases/download/daily/TinyTeX-1.zip" -OutFile "$($env:TMP)\TinyTex.zip"
141-
Expand-Archive -LiteralPath "$($env:TMP)\TinyTex.zip" -DestinationPath "$($PWD)\ManimCache\LatexWindows"
140+
Invoke-WebRequest "https://github.com/rstudio/tinytex-releases/releases/download/daily/TinyTeX-1-windows.exe" -OutFile "$($env:TMP)\TinyTex.exe"
141+
.$env:TMP\TinyTex.exe -o"$($PWD)\ManimCache\LatexWindows"
142142
$env:Path = "$($PWD)\ManimCache\LatexWindows\TinyTeX\bin\windows;$($env:PATH)"
143143
tlmgr update --self
144144
tlmgr install $tinyTexPackages

0 commit comments

Comments
 (0)