#659 Fix .par when Rpcl2 and rectangular diagram #1137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: dynawo/dynawo-ci:latest | |
env: | |
DYNAWO_VERSION: 1.5.0 | |
DYNAFLOW_LAUNCHER_BUILD_TYPE: Debug | |
DYNAFLOW_LAUNCHER_PROCESSORS_USED: 2 | |
DYNAFLOW_LAUNCHER_FORCE_CXX11_ABI: "true" | |
DYNAFLOW_LAUNCHER_LOCALE: "en_GB" | |
DYNAFLOW_LAUNCHER_USE_DOXYGEN: "OFF" | |
DYNAFLOW_LAUNCHER_BUILD_TESTS: "OFF" | |
GH_API: ${{ github.api_url }}/repos/${{ github.repository }} | |
GH_API_DYNAWO: ${{ github.api_url }}/repos/${{ github.repository_owner }}/dynawo | |
GH_API_DYNAWO_ALGORITHMS: ${{ github.api_url }}/repos/${{ github.repository_owner }}/dynawo-algorithms | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CURL_JSON: 'curl --silent -H "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --header "Content-Type: application/json"' | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Fetch Dynawo and Dynawo algorithms | |
run: | | |
source .github/workflows/tools.sh | |
download_asset $GH_API_DYNAWO nightly-release Dynawo_headers_V${DYNAWO_VERSION}.zip $GITHUB_TOKEN | |
download_asset $GH_API_DYNAWO_ALGORITHMS nightly-release DynawoAlgorithms_headers_V${DYNAWO_VERSION}.zip $GITHUB_TOKEN | |
- 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: | | |
source /etc/profile.d/00-modulepath.sh | |
source /etc/profile.d/modules.sh | |
source /usr/share/lmod/lmod/init/bash | |
module load mpi/mpich-x86_64 | |
export DYNAWO_HOME=$(pwd)/dynawo | |
export DYNAWO_ALGORITHMS_HOME=$(pwd)/dynawo-algorithms | |
export DYNAFLOW_LAUNCHER_HOME=$(pwd) | |
scripts/envDFL.sh build-user | |
coverage: | |
runs-on: ubuntu-latest | |
container: dynawo/dynawo-ci:latest | |
env: | |
DYNAWO_VERSION: 1.5.0 | |
DYNAFLOW_LAUNCHER_BUILD_TYPE: Debug | |
DYNAFLOW_LAUNCHER_PROCESSORS_USED: 2 | |
DYNAFLOW_LAUNCHER_FORCE_CXX11_ABI: "true" | |
DYNAFLOW_LAUNCHER_LOCALE: "en_GB" | |
DYNAFLOW_LAUNCHER_USE_DOXYGEN: "OFF" | |
DYNAFLOW_LAUNCHER_BUILD_TESTS: "ON" | |
DYNAFLOW_LAUNCHER_BROWSER_SHOW: "false" | |
GH_API: ${{ github.api_url }}/repos/${{ github.repository }} | |
GH_API_DYNAWO: ${{ github.api_url }}/repos/${{ github.repository_owner }}/dynawo | |
GH_API_DYNAWO_ALGORITHMS: ${{ github.api_url }}/repos/${{ github.repository_owner }}/dynawo-algorithms | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CURL_JSON: 'curl --silent -H "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --header "Content-Type: application/json"' | |
steps: | |
- name: Install Sonar wrapper | |
working-directory: ${{ runner.workspace }} | |
env: | |
CONTAINER_WORKSPACE: ${{ runner.workspace }} | |
run: | | |
wget https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip | |
unzip build-wrapper-linux-x86.zip | |
- name: Install Sonar scanner | |
working-directory: ${{ runner.workspace }} | |
env: | |
SONAR_SCANNER_VERSION: 4.6.0.2311 | |
run: | | |
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip | |
unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip | |
ln -s sonar-scanner-${SONAR_SCANNER_VERSION} sonar | |
rm sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip | |
dnf install -y java-11-openjdk | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Fetch Dynawo and Dynawo algorithms | |
run: | | |
source .github/workflows/tools.sh | |
download_asset $GH_API_DYNAWO nightly-release Dynawo_headers_V${DYNAWO_VERSION}.zip $GITHUB_TOKEN | |
download_asset $GH_API_DYNAWO_ALGORITHMS nightly-release DynawoAlgorithms_headers_V${DYNAWO_VERSION}.zip $GITHUB_TOKEN | |
- name: Unzip Dynawo and Dynawo algorithms | |
run: | | |
unzip -qq "Dynawo_headers_V${DYNAWO_VERSION}.zip" | |
unzip -qq "DynawoAlgorithms_headers_V${DYNAWO_VERSION}.zip" | |
- name: Build | |
env: | |
CONTAINER_WORKSPACE: ${{ runner.workspace }} | |
run: | | |
source /etc/profile.d/00-modulepath.sh | |
source /etc/profile.d/modules.sh | |
source /usr/share/lmod/lmod/init/bash | |
module load mpi/mpich-x86_64 | |
export DYNAWO_HOME=$(pwd)/dynawo | |
export DYNAWO_ALGORITHMS_HOME=$(pwd)/dynawo-algorithms | |
export DYNAFLOW_LAUNCHER_HOME=$(pwd) | |
$CONTAINER_WORKSPACE/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output scripts/envDFL.sh build-tests-coverage | |
- name: Sonarcloud | |
working-directory: ${{ runner.workspace }}/dynaflow-launcher | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
CONTAINER_WORKSPACE: ${{ runner.workspace }} | |
run: $CONTAINER_WORKSPACE/sonar/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.cfamily.threads=2 |