Skip to content

nightly-linux

nightly-linux #733

Workflow file for this run

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:
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@v4
- 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