|
1 | 1 | name: CI
|
2 | 2 | on:
|
3 | 3 | push:
|
4 |
| - branches: |
5 |
| - - master |
| 4 | + branches: |
| 5 | + - master |
6 | 6 | pull_request:
|
7 |
| - branches: |
8 |
| - - master |
| 7 | + branches: |
| 8 | + - master |
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | test:
|
12 | 12 | runs-on: ${{ matrix.os }}
|
13 | 13 | env:
|
14 |
| - POETRY_VIRTUALENVS_CREATE: false |
| 14 | + POETRY_VIRTUALENVS_CREATE: false |
15 | 15 | strategy:
|
16 | 16 | fail-fast: false
|
17 | 17 | matrix:
|
18 | 18 | os: [ubuntu-latest, macos-latest, windows-latest]
|
19 |
| - python: [3.6,3.7, 3.8] |
| 19 | + python: [3.6, 3.7, 3.8] |
20 | 20 |
|
21 | 21 | steps:
|
22 | 22 | - name: Checkout the repository
|
|
36 | 36 | shell: bash
|
37 | 37 | id: pip-cache-and-time
|
38 | 38 | run: |
|
39 |
| - echo "::set-output name=dir::$(pip cache dir)" |
40 |
| - echo "::set-output name=date::$(/bin/date -u "+%m%Y")" |
| 39 | + echo "::set-output name=dir::$(pip cache dir)" |
| 40 | + echo "::set-output name=date::$(/bin/date -u "+%m%Y")" |
41 | 41 |
|
42 | 42 | - name: pip cache
|
43 | 43 | uses: actions/cache@v2
|
@@ -73,27 +73,31 @@ jobs:
|
73 | 73 | if: runner.os == 'Windows'
|
74 | 74 | uses: actions/cache@v2
|
75 | 75 | with:
|
76 |
| - path: ${{ github.workspace }}\ManimCache |
77 |
| - key: ${{ runner.os }}-dependencies-ffmpeg-tinytex-${{ hashFiles('.github/manimdependency.json') }}-${{ steps.pip-cache-and-time.outputs.date }} |
| 76 | + path: ${{ github.workspace }}\ManimCache |
| 77 | + key: ${{ runner.os }}-dependencies-ffmpeg-tinytex-${{ hashFiles('.github/manimdependency.json') }}-${{ steps.pip-cache-and-time.outputs.date }} |
78 | 78 |
|
79 | 79 | - name: Download system dependencies (Windows)
|
80 | 80 | if: runner.os == 'Windows' && steps.cache-windows.outputs.cache-hit != 'true'
|
81 | 81 | run: |
|
82 | 82 | $ffmpegUrl = python -c "import json;print(json.load(open('.github/manimdependency.json'))['windows']['ffmpeg'])"
|
83 | 83 | $pangoVersion = python -c "import json;print(json.load(open('.github/manimdependency.json'))['windows']['pango'])"
|
| 84 | + $tinyTexPackages = $(python -c "import json;print(' '.join(json.load(open('.github/manimdependency.json'))['windows']['tinytex']))") -Split ' ' |
84 | 85 | $OriPath = $env:PATH
|
85 | 86 | echo "Install Tinytex"
|
86 | 87 | Invoke-WebRequest "https://ci.appveyor.com/api/projects/yihui/tinytex/artifacts/TinyTeX.zip?job=image:%20Visual%20Studio%202019" -O "$($env:TMP)\TinyTex.zip"
|
87 | 88 | Expand-Archive -LiteralPath "$($env:TMP)\TinyTex.zip" -DestinationPath "$($PWD)\ManimCache\LatexWindows"
|
88 | 89 | $env:Path = "$($PWD)\ManimCache\LatexWindows\TinyTeX\bin\win32;$($env:PATH)"
|
89 | 90 | tlmgr update --self
|
90 |
| - tlmgr install standalone preview doublestroke ms setspace rsfs relsize ragged2e fundus-calligra microtype wasysym physics dvisvgm jknapltx wasy cm-super babel-english |
| 91 | + foreach ($c in $tinyTexPackages){ |
| 92 | + $c=$c.Trim() |
| 93 | + tlmgr install $c |
| 94 | + } |
91 | 95 | $env:PATH=$OriPath
|
92 | 96 | echo "Completed Latex"
|
93 | 97 | Invoke-WebRequest "$ffmpegUrl" -O "$($env:TMP)\ffmpeg.zip"
|
94 | 98 | 7z x "$($env:TMP)\ffmpeg.zip" -o"$($PWD)\ManimCache"
|
95 | 99 | Move-Item "ManimCache\ffmpeg-*" "ManimCache\FFmpeg"
|
96 |
| - Invoke-WebRequest "https://github.com/ManimCommunity/manim-windows/releases/download/$($pangoVersion)/pango-windows-binaires-x64.zip" -O "$($env:TMP)\Pango.zip" |
| 100 | + Invoke-WebRequest "https://github.com/ManimCommunity/pango-windows-binaries/releases/download/$($pangoVersion)/pango-windows-binaires-x64.zip" -O "$($env:TMP)\Pango.zip" |
97 | 101 | mkdir "$($PWD)\ManimCache\Pango"
|
98 | 102 | 7z x "$($env:TMP)\Pango.zip" -o"$($PWD)\ManimCache\Pango"
|
99 | 103 |
|
|
0 commit comments