-
Notifications
You must be signed in to change notification settings - Fork 392
119 lines (96 loc) · 3.87 KB
/
documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Documentation
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout EnergyPlus
uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Set up LaTeX
run: sudo apt update && sudo apt install -y texlive texlive-xetex texlive-science poppler-utils
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/EnergyPlus/doc/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/EnergyPlus/doc/build
run: cmake -DTEX_INTERACTION=batchmode -DDOCS_TESTING=ON ..
- name: Add problem matcher
run: echo "::add-matcher::.github/workflows/doc-problem-match.json"
- name: Build Docs
working-directory: ${{runner.workspace}}/EnergyPlus/doc/build
run: cmake --build . -j 2
- name: Upload Acknowledgments
uses: actions/upload-artifact@v3
with:
name: Acknowledgments
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/Acknowledgments.pdf
- name: Upload AuxiliaryPrograms
uses: actions/upload-artifact@v3
with:
name: AuxiliaryPrograms
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/AuxiliaryPrograms.pdf
- name: Upload EMSApplicationGuide
uses: actions/upload-artifact@v3
with:
name: EMSApplicationGuide
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/EMSApplicationGuide.pdf
- name: Upload EnergyPlusEssentials
uses: actions/upload-artifact@v3
with:
name: EnergyPlusEssentials
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/EnergyPlusEssentials.pdf
- name: Upload EngineeringReference
uses: actions/upload-artifact@v3
with:
name: EngineeringReference
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/EngineeringReference.pdf
- name: Upload ExternalInterfacesApplicationGuide
uses: actions/upload-artifact@v3
with:
name: ExternalInterfacesApplicationGuide
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/ExternalInterfacesApplicationGuide.pdf
- name: Upload GettingStarted
uses: actions/upload-artifact@v3
with:
name: GettingStarted
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/GettingStarted.pdf
- name: Upload InputOutputReference
uses: actions/upload-artifact@v3
with:
name: InputOutputReference
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/InputOutputReference.pdf
- name: Upload InterfaceDeveloper
uses: actions/upload-artifact@v3
with:
name: InterfaceDeveloper
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/InterfaceDeveloper.pdf
- name: Upload ModuleDeveloper
uses: actions/upload-artifact@v3
with:
name: ModuleDeveloper
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/ModuleDeveloper.pdf
- name: Upload OutputDetailsAndExamples
uses: actions/upload-artifact@v3
with:
name: OutputDetailsAndExamples
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/OutputDetailsAndExamples.pdf
- name: Upload PlantApplicationGuide
uses: actions/upload-artifact@v3
with:
name: PlantApplicationGuide
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/PlantApplicationGuide.pdf
- name: Upload UsingEnergyPlusForCompliance
uses: actions/upload-artifact@v3
with:
name: UsingEnergyPlusForCompliance
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/UsingEnergyPlusForCompliance.pdf
# - name: Test
# working-directory: ${{runner.workspace}}/build
# shell: bash
# # Execute tests defined by the CMake configuration.
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# # run: ctest -C $BUILD_TYPE
# run: ls