Skip to content

Commit c041da3

Browse files
authored
Merge branch 'TeamCOMPAS:dev' into updates_to_CI
2 parents 810d813 + 39a1257 commit c041da3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+164
-64
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: COMPAS compile test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
compas:
7+
name: Build COMPAS
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Install dependencies
13+
run: sudo apt install g++ libboost-all-dev libgsl-dev libhdf5-serial-dev
14+
15+
- name: Build Compas
16+
run: cd src && make -j $(nproc) -f Makefile
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: LaTeX compile test
2+
3+
# Test Latex compiles on pull_requests
4+
# Public documentation on push to dev
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches: [dev]
10+
11+
jobs:
12+
latex:
13+
name: Build LaTeX documentation
14+
runs-on: ubuntu-18.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: sudo apt install texlive-base
21+
22+
# Need to do pdflatex, bibtex, pdflatex, pdflatex
23+
- name: pdflatex main
24+
uses: dante-ev/latex-action@latest
25+
with:
26+
working_directory: docs/COMPAS_LaTeX
27+
root_file: main.tex
28+
compiler: pdflatex
29+
args: -interaction=nonstopmode -shell-escape
30+
31+
- name: bibtex main
32+
uses: dante-ev/latex-action@latest
33+
with:
34+
working_directory: docs/COMPAS_LaTeX
35+
root_file: main.aux
36+
compiler: bibtex
37+
args:
38+
39+
- name: pdflatex main
40+
uses: dante-ev/latex-action@latest
41+
with:
42+
working_directory: docs/COMPAS_LaTeX
43+
root_file: main.tex
44+
compiler: pdflatex
45+
args: -interaction=nonstopmode -shell-escape
46+
47+
- name: pdflatex main
48+
uses: dante-ev/latex-action@latest
49+
with:
50+
working_directory: docs/COMPAS_LaTeX
51+
root_file: main.tex
52+
compiler: pdflatex
53+
args: -interaction=nonstopmode -shell-escape
54+
55+
56+
# If push to dev, publish the documentation
57+
- name: publish documentation
58+
if: github.event_name == 'push'
59+
run: |
60+
git checkout --orphan Documentation
61+
PDF_FILE=COMPAS_Documentation.pdf
62+
mv docs/COMPAS_LaTeX/main.pdf $PDF_FILE
63+
git rm -rf .
64+
git add -f $PDF_FILE
65+
git config user.name "Team COMPAS"
66+
git config user.email "<>"
67+
git commit -m "Documentation update"
68+
git push -f --set-upstream origin Documentation

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Thumbs.db
2121
__pycache__/
2222
COMPAS_Output*/
2323
output*/
24-
.github/
2524
COMPAS
2625
*.log
2726
*.aux
2827
*.toc
2928
*.bbl
3029
*.blg
30+
*.pdf
3131
*.synctex
3232
*.synctex(busy)
3333
*.synctex.gz

README.md

Lines changed: 3 additions & 1 deletion

docs/COMPAS_Doc.pdf

-2.24 MB
Binary file not shown.

docs/COMPAS_LaTex/sections/Appendices/Appendices-main.tex renamed to docs/COMPAS_LaTeX/sections/Appendices/Appendices-main.tex

File renamed without changes.

0 commit comments

Comments
 (0)