forked from eclipse-sumo/sumo
-
Notifications
You must be signed in to change notification settings - Fork 7
94 lines (82 loc) · 3.03 KB
/
jupedsim-windows.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
name: jupedsim-windows
on:
push: # run on push events
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
branches:
- '**'
tags:
- '*'
pull_request: # run on pull requests
paths-ignore: # but ignore everything in the docs subfolder
- 'docs/**'
schedule:
- cron: '5 0 * * *'
jobs:
build:
if: github.repository == 'DLR-TS/sumo' || github.event_name == 'pull_request'
runs-on: windows-latest
strategy:
# Allow all other matrix-jobs to continue running, even if one of the jobs fails
fail-fast: false
matrix:
jps_version: [rls-1.2, master]
build_config: [Release, Debug]
steps:
- name: Cloning jupedsim
uses: actions/checkout@v4
with:
repository: PedestrianDynamics/jupedsim
ref: ${{ matrix.jps_version }}
path: jupedsim
- name: Building jupedsim
run: |
cmake -B jupedsim-build-${{ matrix.build_config }} -DCMAKE_INSTALL_PREFIX=jupedsim-install-${{ matrix.build_config }} jupedsim
cmake --build jupedsim-build-${{ matrix.build_config }} -j4 --config ${{ matrix.build_config }}
cmake --install jupedsim-build-${{ matrix.build_config }} --config ${{ matrix.build_config }}
- name: Uploading artifacts
uses: actions/upload-artifact@v4
with:
name: jupedsim-${{ matrix.jps_version }}-${{ matrix.build_config }}
path: jupedsim-install-${{ matrix.build_config }}
- name: Cloning SUMO
uses: actions/checkout@v4
with:
path: sumo
fetch-depth: 0
- name: Fetching SUMO tags
run: |
cd sumo
git fetch --tags --force
- name: Cloning SUMO Libraries
uses: actions/checkout@v4
with:
repository: DLR-TS/SUMOLibraries
path: sumolibraries
- name: Configuring and building SUMO
run: |
cmake -B sumo/build-${{ matrix.build_config }} -DJUPEDSIM_CUSTOMDIR=jupedsim-install-${{ matrix.build_config }} sumo
cmake --build sumo/build-${{ matrix.build_config }} -j4 --config ${{ matrix.build_config }} --target sumo
- name: Running sumo.extra tests
# Tests in Debug hit a timeout
if: matrix.build_config == 'Release'
run: |
cd sumo/build-${{ matrix.build_config }}
$env:TEXTTEST_TMP = "D:/texttest"
$env:TEXTTEST_CI_APPS = "-a sumo.extra.${{ matrix.jps_version }}"
ctest --build-config ${{ matrix.build_config }} --verbose -R texttest
$env:TEXTTEST_CI_APPS = "-a sumo -ts meta"
ctest --build-config ${{ matrix.build_config }} --verbose -R texttest
- name: Compressing test results
if: failure()
run: |
dir d:\texttest
Compress-Archive -Path D:/texttest -DestinationPath D:/texttest/tt.zip
dir d:\texttest
- name: Uploading test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: texttesttmp-${{ matrix.jps_version }}-${{ matrix.build_config }}
path: D:/texttest/tt.zip
if-no-files-found: warn