This repository was archived by the owner on Oct 3, 2024. It is now read-only.
edit T31 #59
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
name: ML | |
on: [workflow_dispatch, pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:latest | |
options: --privileged | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- name: Update dependencies | |
run: apt-get update | |
- name: Install utils | |
run: apt-get install -y texlive-xetex pandoc | |
- name: Install fonts | |
run: | | |
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections | |
apt-get install -y --reinstall ttf-mscorefonts-installer | |
fc-cache -f | |
- name: Setup repository | |
uses: actions/checkout@v4 | |
- name: Build PDF | |
run: | | |
bash BuildLectures.sh | |
bash BuildTheory.sh | |
bash BuildAllTheory.sh | |
- name: Upload PDF | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ml | |
path: | | |
lectures/*.pdf | |
theory/*.pdf | |
if-no-files-found: error | |
retention-days: 69 |