-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (76 loc) · 2.26 KB
/
build-macos.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
name: macos
on:
push: # run on push events
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
pull_request: # run on pull requests
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
jobs:
build:
runs-on: macos-10.15
steps:
- name: Cloning SUMO
uses: actions/checkout@v2
with:
path: sumo
fetch-depth: 0
- name: Fetching SUMO tags
run: |
cd sumo
git fetch --tags --force
- name: Preparing Build System
run: |
brew cask install xquartz
brew install xerces-c fox proj gdal gl2ps
- name: Installing Google Test
run: |
git clone --depth 1 --branch release-1.10.0 https://github.com/google/googletest
cd googletest
mkdir build
cd build
cmake ..
make
make install
- name: Building SUMO
run: |
mkdir -p sumo/cmake-build
cd sumo/cmake-build
cmake -DFMI=ON ..
make -j4
- name: Building Traas
run: |
cd sumo/cmake-build
make traas
- name: Installing SUMO
run: |
cd sumo/cmake-build
sudo make install
- name: Building Examples and Tests
run: |
cd sumo/cmake-build
make CTEST_OUTPUT_ON_FAILURE=1 examples test
- name: Uploading artifacts (SUMO binaries)
uses: actions/upload-artifact@v1
with:
name: macOS
path: sumo/bin
- name: Building FMU Compliance Checker
run: |
# Runs only in Clang11 - minizip fails due to -Werror
sudo xcode-select -s "/Applications/Xcode_11.7.app"
git clone --depth 1 https://github.com/modelica-tools/FMUComplianceChecker.git fmuChecker
cd fmuChecker
mkdir build
cd build
cmake ../ -Wno-dev
cmake --build . --target install -Wno-dev
- name: Checking sumo-fmi2.fmu
run: |
cd sumo
../fmuChecker/install/fmuCheck.darwin64 bin/sumo-fmi2-darwin64.fmu
- name: Uploading FMI 2.0 FMU artifacts
uses: actions/upload-artifact@v1
with:
name: sumo-fmi2-darwin64
path: sumo/bin/sumo-fmi2-darwin64.fmu