Reorganize directory structure #38
Workflow file for this run
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: Build | |
on: [push, pull_request] | |
jobs: | |
ubuntu-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup environment | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install ninja-build | |
sudo apt-get install texlive* | |
- name: Build | |
run: | | |
find . -iname '*.tex' -exec sh -c 'cd $(echo {}|cut -d"/" -f2) && pdflatex -output-directory $GITHUB_WORKSPACE $GITHUB_WORKSPACE/{}' \; | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pdf-linux | |
path: '*.pdf' | |
macos-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup environment | |
run: | | |
brew install --cask mactex | |
- name: Build | |
run: | | |
eval "$(/usr/libexec/path_helper)" | |
find . -iname '*.tex' -exec sh -c 'cd $(echo {}|cut -d"/" -f2) && pdflatex -output-directory $GITHUB_WORKSPACE $GITHUB_WORKSPACE/{}' \; | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pdf-macos | |
path: '*.pdf' |