-
Notifications
You must be signed in to change notification settings - Fork 24
96 lines (89 loc) · 2.9 KB
/
BuildRelease4Windows.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
name: Casal2 build Windows install
on:
push:
branches:
- master # age_length_redesign_202109
jobs:
Compile-Casal2-Setup:
runs-on: windows-2022
timeout-minutes: 180
steps:
- name: Checkout Casal2
uses: actions/checkout@v2
- uses: actions/[email protected]
with:
python-version: '3.8'
- name: Install python dependencies
run: python.exe -m pip install pytz python-dateutil --user --upgrade pip
- name: Install gcc
uses: bwoodsend/setup-winlibs-action@v1
with:
# see https://github.com/marketplace/actions/setup-winlibs
# and https://github.com/brechtsanders/winlibs_mingw/tags
#tag: '10.3.0-12.0.0-9.0.0-r2'
tag: '10.3.1-snapshot20211112-9.0.0-ucrt-r1' # previous tag as of 2022-03-31
#tag: '11.1.0-12.0.0-9.0.0-r1' # reference tag in documentation
#tag: '11.2.1-snapshot20220219-9.0.0-ucrt-r1' # caused issues with Casal2 unit tests
#tag: '12.0.1-snapshot20220123-9.0.0-msvcrt-r1'
- name: Build third-party library - adolc
run: |
cd BuildSystem
./doBuild.bat thirdparty adolc
- name: Build third-party library - betadiff
run: |
cd BuildSystem
./doBuild.bat thirdparty betadiff
- name: Build third-party library - boost
run: |
cd BuildSystem
./doBuild.bat thirdparty boost
- name: Build third-party libraries - google test and mock
run: |
cd BuildSystem
./doBuild.bat thirdparty googletest_googlemock
- name: Build third-party libraries - parser
run: |
cd BuildSystem
./doBuild.bat thirdparty parser
- name: Build release library
run: |
cd BuildSystem
./doBuild.bat library release
- name: Build "Betadiff" library
run: |
cd BuildSystem
./doBuild.bat library betadiff
- name: Build "ADOL-C" library
run: |
cd BuildSystem
./doBuild.bat library adolc
- name: Build "Unit Test" library
run: |
cd BuildSystem
./doBuild.bat library test
- name: Build Frontend
run: |
cd BuildSystem
./doBuild.bat frontend
shell: bash
- name: Build Windows Archive
continue-on-error: true
run: |
cd BuildSystem
./doBuild.bat archive true
shell: bash
- name: Archive Windows build
continue-on-error: true
uses: actions/[email protected]
with:
name: Casal2-Windows-build
path: BuildSystem/Casal2
- name: Run Windows model runner
continue-on-error: false
run: |
cd BuildSystem
./doBuild.bat modelrunner
- name: Build installer iss file
run: |
cd BuildSystem
./doBuild.bat installer