diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6f24ba0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: compile_test +on: [push] + +jobs: + compilation: + runs-on: ubuntu-latest + + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - run: cd ./test && chmod +x copy_files.sh && ./copy_files.sh + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v2 + with: + root_file: test.tex + working_directory: test + - name: upload + uses: actions/upload-artifact@v3 + with: + name: PDF + path: test/test.pdf diff --git a/test/copy_files.sh b/test/copy_files.sh new file mode 100755 index 0000000..5727778 --- /dev/null +++ b/test/copy_files.sh @@ -0,0 +1,15 @@ +#!/bin/bash +cp ../support/*.cls . +cp ../support/document/*.tex . +cp ../support/document/tex/*.tex . +cp ../support/document/bib/* . +cp ../support/document/fig/* . +cp ../support/export/* . +cp ../support/images/* . +cp ../support/packages/*.tex . +cp ../support/packages/mcode/*.sty . +cp ../support/templates/*.tex . +cp ../support/templates/aiaa/* . +cp ../support/templates/standalone/* . +cp ../support/templates/tech/* . +cp ../support/citations/aiaa/* . diff --git a/test/test.tex b/test/test.tex new file mode 100644 index 0000000..db1ada3 --- /dev/null +++ b/test/test.tex @@ -0,0 +1,22 @@ +% Define Class: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\documentclass[template=tech-memo]{nasa-latex-docs} + +% Preamble Section: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +% Add bibliogrpahy file +\addbibresource{main.bib} + +\docAbstract[ + \cite{nasa-latex-docs} +] + +% Main Document Content: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{document} + + +\input{sample_content.tex} + +\printbibliography + +\end{document}