-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into 8722_HVAC_Diagram
- Loading branch information
Showing
200 changed files
with
5,211 additions
and
4,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: Documentation Windows | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
|
||
env: | ||
CMAKE_Fortran_COMPILER: "/c/msys64/mingw64/bin/x86_64-w64-mingw32-gfortran.exe" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Checkout EnergyPlus | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install System dependencies and LaTeX | ||
shell: bash | ||
run: | | ||
set -x | ||
echo "Downloading MiKTeX CLI installer" | ||
# We download from a specific miror already # TODO: Should store this setup package somewhere ourselves | ||
curl -L -O https://ctan.math.illinois.edu/systems/win32/miktex/setup/windows-x64/miktexsetup-4.1-x64.zip | ||
unzip miktexsetup-4.1-x64.zip | ||
echo "Setting up the local package directory via download" | ||
./miktexsetup_standalone --verbose \ | ||
--local-package-repository=C:/MiKTeX-Repo \ | ||
--remote-package-repository="https://ctan.math.illinois.edu/systems/win32/miktex/tm/packages/" \ | ||
--package-set=essential \ | ||
download | ||
echo "Installing from the local package directory previously set up" | ||
./miktexsetup_standalone --verbose \ | ||
--local-package-repository=C:/MiKTeX-Repo \ | ||
--package-set=essential \ | ||
--shared=yes \ | ||
install | ||
echo "Adding MiKTeX bin folder to PATH and to GITHUB_PATH" | ||
echo "C:/Program Files/MiKTeX/miktex/bin/x64/" >> $GITHUB_PATH | ||
export PATH="/c/Program Files/MiKTeX/miktex/bin/x64/:$PATH" | ||
echo "Configuring MiKTeX to install missing packages on the fly" | ||
initexmf --admin --verbose --set-config-value='[MPM]AutoInstall=1' | ||
echo "Configure default mirror for packages" | ||
mpm --admin --set-repository="https://ctan.math.illinois.edu/systems/win32/miktex/tm/packages/" | ||
# If later we pre-package into a zip/tar.gz all the packages we need, we can preinstall them via | ||
# mpm --admin --set-repository=C:/MiKTeX-Repo | ||
# mpm --verbose --admin --repository=C:\MiKTeX-Repo --require=@C:\MiKTeX-Repo\energyplus_packages.lst | ||
# Avoid annoying warning: "xelatex: major issue: So far, you have not checked for updates as a MiKTeX user." | ||
mpm --find-updates | ||
mpm --admin --find-updates | ||
- name: Install required packages | ||
shell: bash | ||
working-directory: ./doc/ | ||
run: | | ||
mpm --verbose --admin --require=@energyplus_packages_windows.lst | ||
# For quick debugging this could be useful, but note that it does not exhibit the main memory size exceeded error | ||
# - name: Build Test package - Pass Number 1 | ||
# shell: bash | ||
# working-directory: ./doc/test/ | ||
# run: | | ||
# xelatex dependencies.tex | ||
# nwords=$(pdftotext -f 2 -l 2 dependencies.pdf - | wc -w) | ||
# [ "$nwords" -lt "10" ] && echo "TOC isn't available for pass NO. 1" || echo "TOC IS available for pass NO. 1" | ||
|
||
- name: Create Build Directory | ||
run: cmake -E make_directory ./doc/build/ | ||
|
||
- name: Configure CMake | ||
working-directory: ./doc/build | ||
shell: bash | ||
run: | | ||
set -x | ||
cmake -G "Visual Studio 16 2019" -A x64 -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 | ||
# I made the BuildDOcumentation.cmake throw a FATAL_ERROR already on pass 2 and 3 of xelatex, so this is redundant now | ||
# but if you want to just build `--target zPDF_InputOutputReference` and test it here, I'm leaving it as an example | ||
# - name: Test InputOutputReference | ||
# shell: bash | ||
# working-directory: ./doc/build/pdf/ | ||
# run: | | ||
# set -x | ||
# pdfinfo InputOutputReference.pdf || true | ||
# npages=$(pdfinfo InputOutputReference.pdf | /bin/grep "Pages:" | sed 's/[^0-9]*//') | ||
# echo "Found $npages pages in the I/O Ref" | ||
# nwords_in_toc=$(pdftotext -f 2 -l 2 InputOutputReference.pdf - | wc -l) | ||
# set +x | ||
# [ "$npages" -le "2800" ] && (echo "TOC is missing" && exit 1) || echo "Length of PDF appears ok" | ||
# [ "$nwords_in_toc" -le "100" ] && (echo "TOC is empty" && exit 1) || echo "TOC appears ok" | ||
|
||
- name: Upload entire pdf folder | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: InputOutputReference | ||
path: ${{runner.workspace}}/EnergyPlus/doc/build/pdf/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
92070af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8722_HVAC_Diagram (jmarrec) - x86_64-MacOS-10.15-clang-11.0.0: OK (3099 of 3099 tests passed, 0 test warnings)
92070af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8722_HVAC_Diagram (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: OK (3140 of 3140 tests passed, 0 test warnings)
92070af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8722_HVAC_Diagram (jmarrec) - Win64-Windows-10-VisualStudio-16: OK (2349 of 2349 tests passed, 0 test warnings)
92070af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8722_HVAC_Diagram (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1654 of 1654 tests passed, 0 test warnings)
92070af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8722_HVAC_Diagram (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (726 of 726 tests passed, 0 test warnings)