-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1825d8b
commit b479356
Showing
2 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Render movie | ||
# name: Render movie | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - '*' | ||
# - '!main' | ||
# # on: | ||
# # push: | ||
# # branches: | ||
# # - '*' | ||
# # - '!main' | ||
|
||
permissions: | ||
contents: read | ||
# permissions: | ||
# contents: read | ||
|
||
jobs: | ||
render_hq: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ ffmpeg texlive-latex-extra --fix-missing | ||
- name: Install fonts | ||
run: | | ||
mkdir ~/texmf | ||
curl -L -o ~/texmf/mnsymbol.zip https://mirrors.ctan.org/fonts/mnsymbol.zip | ||
unzip ~/texmf/mnsymbol.zip -d ~/texmf | ||
cd ~/texmf/mnsymbol/tex && ls && latex MnSymbol.ins | ||
mkdir -p ~/texmf/tex/latex/MnSymbol/ | ||
cp ~/texmf/mnsymbol/tex/MnSymbol.sty ~/texmf/tex/latex/MnSymbol/ | ||
mkdir -p ~/texmf/fonts/tfm/public/MnSymbol | ||
cp ~/texmf/mnsymbol/tfm/* ~/texmf/fonts/tfm/public/MnSymbol | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
- name: Install pip dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install manim-editor #Temporary, install here as it | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Render movie (manim) | ||
run: | | ||
python -m manim -p -qh zkmarek/video/main.py | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Movie HQ | ||
path: media/videos/main/1080p60/EllipticCurves.mp4 | ||
retention-days: 5 | ||
# jobs: | ||
# render_hq: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Install apt dependencies | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ ffmpeg texlive-latex-extra --fix-missing | ||
# - name: Install fonts | ||
# run: | | ||
# mkdir ~/texmf | ||
# curl -L -o ~/texmf/mnsymbol.zip https://mirrors.ctan.org/fonts/mnsymbol.zip | ||
# unzip ~/texmf/mnsymbol.zip -d ~/texmf | ||
# cd ~/texmf/mnsymbol/tex && ls && latex MnSymbol.ins | ||
# mkdir -p ~/texmf/tex/latex/MnSymbol/ | ||
# cp ~/texmf/mnsymbol/tex/MnSymbol.sty ~/texmf/tex/latex/MnSymbol/ | ||
# mkdir -p ~/texmf/fonts/tfm/public/MnSymbol | ||
# cp ~/texmf/mnsymbol/tfm/* ~/texmf/fonts/tfm/public/MnSymbol | ||
# - name: Set up Python 3.11 | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.11' | ||
# cache: 'pip' | ||
# - name: Install pip dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# python -m pip install manim-editor #Temporary, install here as it | ||
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
# - name: Render movie (manim) | ||
# run: | | ||
# python -m manim -p -qh zkmarek/video/main.py | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: Movie HQ | ||
# path: media/videos/main/1080p60/EllipticCurves.mp4 | ||
# retention-days: 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters