forked from NREL/EnergyPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (77 loc) · 2.41 KB
/
linux_release.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
name: Linux Releases
on:
push:
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_TYPE: Release
jobs:
linux_release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install aqtinstall
- name: Install System dependencies and LaTeX
shell: bash
run: |
set -x
echo "Using Apt to install dependencies"
sudo apt-get update
sudo apt-get install texlive texlive-xetex texlive-science libxkbcommon-x11-0 xorg-dev libgl1-mesa-dev
- name: Install IFW
shell: bash
run: |
set -x
out_dir=${{ runner.workspace }}/Qt
aqt tool linux tools_ifw 4.0 qt.tools.ifw.40 --outputdir="$out_dir"
echo "$out_dir/Tools/QtInstallerFramework/4.0/bin" >> $GITHUB_PATH
- name: Create Build Directory
run: cmake -E make_directory ./build/
- name: Configure CMake
working-directory: ./build
shell: bash
run: |
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DLINK_WITH_PYTHON=ON -DBUILD_FORTRAN=ON -DBUILD_PACKAGE:BOOL=ON \
-DDOCUMENTATION_BUILD="BuildWithAll" -DTEX_INTERACTION="batchmode" \
../
- name: Build Package
working-directory: ./build
shell: bash
run: cmake --build . --target package -j 2
- name: Upload Tarball to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/EnergyPlus-*-x86_64.tar.gz
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Upload IFW to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/EnergyPlus-*-x86_64.run
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Upload SH to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/EnergyPlus-*-x86_64.sh
tag: ${{ github.ref }}
overwrite: true
file_glob: true
asset_name: ${{ matrix.os }}_LinuxShellInstaller