-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (51 loc) · 1.88 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
59
60
name: Nightly
on:
workflow_dispatch:
repository_dispatch:
types: [nightly-linux]
env:
DYNAWO_VERSION: 1.6.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:
DYNAFLOW_LAUNCHER_BUILD_TYPE: ${{ matrix.build-type }}
DYNAFLOW_LAUNCHER_PROCESSORS_USED: 2
DYNAFLOW_LAUNCHER_FORCE_CXX11_ABI: "true"
DYNAFLOW_LAUNCHER_LOCALE: "en_GB"
DYNAFLOW_LAUNCHER_USE_DOXYGEN: "ON"
DYNAFLOW_LAUNCHER_BUILD_TESTS: "ON"
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Fetch Dynawo
run: |
curl -LOs https://github.com/${{ github.repository_owner }}/dynawo/releases/download/nightly/Dynawo_headers_v$DYNAWO_VERSION.zip
curl -LOs https://github.com/${{ github.repository_owner }}/dynawo-algorithms/releases/download/nightly/DynawoAlgorithms_headers_v$DYNAWO_VERSION.zip
- name: Unzip Dynawo and Dynawo algorithms
run: |
unzip -qq "Dynawo_headers_v${DYNAWO_VERSION}.zip"
unzip -qq "DynawoAlgorithms_headers_v${DYNAWO_VERSION}.zip"
- name: Dynawo and Dynawo algorithms versions
run: |
./dynawo/dynawo.sh version
./dynawo-algorithms/dynawo-algorithms.sh --version
- name: Build
run: |
export DYNAWO_HOME=$(pwd)/dynawo
export DYNAWO_ALGORITHMS_HOME=$(pwd)/dynawo-algorithms
export DYNAFLOW_LAUNCHER_HOME=$(pwd)
scripts/envDFL.sh build-user
- name: Tests
if: ${{ matrix.build-type == 'Debug' }}
run: |
export DYNAWO_HOME=$(pwd)/dynawo
export DYNAWO_ALGORITHMS_HOME=$(pwd)/dynawo-algorithms
export DYNAFLOW_LAUNCHER_HOME=$(pwd)
scripts/envDFL.sh tests