Adds CΩMPUTER book submodule #58
Workflow file for this run
This file contains hidden or 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: Build LaTeX Papers | |
| 'on': | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| release: | |
| types: [created] | |
| jobs: | |
| build-holography: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Compile LaTeX (aion-holography) | |
| uses: xu-cheng/latex-action@v3 | |
| with: | |
| working_directory: aion-holography | |
| root_file: main.tex | |
| latexmk_use_xelatex: false | |
| args: -pdf -interaction=nonstopmode -halt-on-error | |
| - name: Install LaTeX tools for arXiv packaging | |
| run: sudo apt-get update && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended | |
| - name: Build COMPUTER book | |
| run: | | |
| git submodule sync --recursive | |
| git submodule update --init --recursive | |
| cd aion-computer-book | |
| make clean | |
| make | |
| - name: Upload COMPUTER book PDF | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: computer-book-pdf | |
| path: aion-computer-book/computer.pdf | |
| retention-days: 30 | |
| - name: Build arXiv tarball | |
| run: | | |
| chmod +x aion-holography/scripts/make-arxiv.sh | |
| SKIP_LATEXMK=1 aion-holography/scripts/make-arxiv.sh | |
| - name: Verify arXiv tarball exists | |
| if: success() | |
| run: | | |
| if [ -s ax.tar ]; then | |
| echo "✅ ax.tar found; proceeding to upload" | |
| ls -lh ax.tar | |
| else | |
| echo "❌ ax.tar missing or empty; make-arxiv.sh likely failed" >&2 | |
| exit 1 | |
| fi | |
| - name: Upload PDF as artifact | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: holography-paper-pdf | |
| path: aion-holography/main.pdf | |
| retention-days: 30 | |
| - name: Upload arXiv tarball as artifact | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: holography-paper-arxiv | |
| path: ax.tar | |
| retention-days: 30 | |
| - name: Rename PDF for release | |
| if: success() && github.event_name == 'release' | |
| run: | | |
| cd aion-holography | |
| cp main.pdf computational-holography-rmg.pdf | |
| - name: Upload PDF to release | |
| if: success() && github.event_name == 'release' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| aion-holography/computational-holography-rmg.pdf | |
| ax.tar |