From f3ae76e59c1032026e86c576662add13efef45cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20P=C3=A9rez=20Zerpa?= Date: Tue, 19 Sep 2023 22:23:39 -0300 Subject: [PATCH 1/4] propose test document and CI --- .github/workflows/test.yml | 21 +++++++++++++++++++++ test/copy_and_compile.sh | 14 ++++++++++++++ test/test.tex | 22 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100755 test/copy_and_compile.sh create mode 100644 test/test.tex diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..57ede26 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: compile +on: [push] + +jobs: + compilation: + runs-on: ubuntu-latest + + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - run: cd ./test && chmod +x copy_and_compile.sh && ./copy_and_compile.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_and_compile.sh b/test/copy_and_compile.sh new file mode 100755 index 0000000..011c95c --- /dev/null +++ b/test/copy_and_compile.sh @@ -0,0 +1,14 @@ +#!/bin/bash +cp ../support/*.cls . +cp ../support/document/*.tex . +cp ../support/document/tex/*.tex . +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} From 6c1a953c0fdc220a0bbe34a5a7f53c7e08120618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20P=C3=A9rez=20Zerpa?= Date: Tue, 19 Sep 2023 22:31:48 -0300 Subject: [PATCH 2/4] fix --- test/{copy_and_compile.sh => copy_files.sh} | 3 +++ 1 file changed, 3 insertions(+) rename test/{copy_and_compile.sh => copy_files.sh} (92%) diff --git a/test/copy_and_compile.sh b/test/copy_files.sh similarity index 92% rename from test/copy_and_compile.sh rename to test/copy_files.sh index 011c95c..4a33c5b 100755 --- a/test/copy_and_compile.sh +++ b/test/copy_files.sh @@ -2,6 +2,7 @@ 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/* . @@ -12,3 +13,5 @@ cp ../support/templates/aiaa/* . cp ../support/templates/standalone/* . cp ../support/templates/tech/* . cp ../support/citations/aiaa/* . + + From de0d0f8e7af8e759633b302c5c82e11584e6f632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20P=C3=A9rez=20Zerpa?= Date: Tue, 19 Sep 2023 22:37:20 -0300 Subject: [PATCH 3/4] fix yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57ede26..6f24ba0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: compile +name: compile_test on: [push] jobs: @@ -8,7 +8,7 @@ jobs: steps: - name: Set up Git repository uses: actions/checkout@v3 - - run: cd ./test && chmod +x copy_and_compile.sh && ./copy_and_compile.sh + - run: cd ./test && chmod +x copy_files.sh && ./copy_files.sh - name: Compile LaTeX document uses: xu-cheng/latex-action@v2 with: From f027cdf2e2d95c21d8354d6806a3ab36eeb75fc3 Mon Sep 17 00:00:00 2001 From: jorgepz Date: Thu, 28 Dec 2023 16:37:59 -0300 Subject: [PATCH 4/4] remove after @antonkesy suggestion --- test/copy_files.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/copy_files.sh b/test/copy_files.sh index 4a33c5b..5727778 100755 --- a/test/copy_files.sh +++ b/test/copy_files.sh @@ -13,5 +13,3 @@ cp ../support/templates/aiaa/* . cp ../support/templates/standalone/* . cp ../support/templates/tech/* . cp ../support/citations/aiaa/* . - -