-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (48 loc) · 1.51 KB
/
nightly.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
name: Nightly
on:
workflow_dispatch:
repository_dispatch:
types: [nightly-linux]
env:
DYNAWO_VERSION: 1.7.0
jobs:
fedora:
name: Linux Fedora (${{ matrix.build-type }})
runs-on: ubuntu-latest
container: dynawo/dynawo-ci-nightly-fedora:latest
strategy:
matrix:
build-type: [Release, Debug]
fail-fast: false
env:
DYNAWO_RESULTS_SHOW: "false"
DYNAWO_BUILD_TYPE: ${{ matrix.build-type }}
DYNAWO_NB_PROCESSORS_USED: 2
DYNAWO_FORCE_CXX11_ABI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Fetch Dynawo
run: curl -LOs https://github.com/${{ github.repository_owner }}/dynawo/releases/download/nightly/Dynawo_omc_v$DYNAWO_VERSION.zip
- name: Unzip Dynawo
run: |
unzip -qq "Dynawo_omc_v${DYNAWO_VERSION}.zip"
- name: Dynawo version
run: ./dynawo/dynawo.sh version
- name: Build
run: |
export DYNAWO_HOME=$(pwd)/dynawo
export DYNAWO_ALGORITHMS_HOME=$(pwd)
util/envDynawoAlgorithms.sh build
- name: Tests
if: ${{ matrix.build-type == 'Debug' }}
run: |
dnf install -y gtest-devel gmock-devel
export DYNAWO_HOME=$(pwd)/dynawo
export DYNAWO_ALGORITHMS_HOME=$(pwd)
util/envDynawoAlgorithms.sh build-tests
- name: NRT
run: |
export DYNAWO_HOME=$(pwd)/dynawo
export DYNAWO_ALGORITHMS_HOME=$(pwd)
util/envDynawoAlgorithms.sh nrt