Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

CI proposal #25

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions test/copy_files.sh
Original file line number Diff line number Diff line change
@@ -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/* .
22 changes: 22 additions & 0 deletions test/test.tex
Original file line number Diff line number Diff line change
@@ -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}