forked from NREL/EnergyPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (76 loc) · 2.09 KB
/
linux_build.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
name: Linux Build
on:
push:
branches: [ develop ]
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events matching v*, i.e. v1.0, v20.15.10
pull_request:
branches: [ develop ]
jobs:
# base_build:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-20.04]
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Set up Python 3.7
# uses: actions/setup-python@v4
# with:
# python-version: 3.7
#
# - name: Install System Dependencies
# shell: bash
# run: |
# set -x
# echo "Using Apt to install dependencies"
# sudo apt-get update
# sudo apt-get install libxkbcommon-x11-0 xorg-dev libgl1-mesa-dev
#
# - name: Create Build Directory
# run: cmake -E make_directory ./build/
#
# - name: Configure CMake
# shell: bash
# working-directory: ./build/
# run: cmake -DCMAKE_BUILD_TYPE=Release -DLINK_WITH_PYTHON=ON ..
#
# - name: Build EnergyPlus
# working-directory: ./build/
# shell: bash
# run: cmake --build . --target energyplus -j 2
alternate_build_configurations:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Install System Dependencies
shell: bash
run: |
set -x
echo "Using Apt to install dependencies"
sudo apt-get update
- name: Create Build Directory
run: cmake -E make_directory ./build/
- name: Configure CMake
shell: bash
working-directory: ./build/
run: |
cmake -DCMAKE_BUILD_TYPE=Release \
-DLINK_WITH_PYTHON=OFF \
-DUSE_PSYCHROMETRICS_CACHING=OFF \
-DUSE_GLYCOL_CACHING=OFF \
-DOPENGL_REQUIRED=OFF \
-DUSE_PSYCH_STATS=ON \
-DUSE_PSYCH_ERRORS=OFF \
-DENABLE_PCH=OFF \
../
- name: Build EnergyPlus
working-directory: ./build/
shell: bash
run: cmake --build . --target energyplus -j 2