Merge pull request #1568 from OpenFAST/rc-3.5.0 #3
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: 'Development Pipeline' | |
on: | |
push: | |
paths-ignore: | |
- 'LICENSE' | |
- 'README.rst' | |
- 'docs/**' | |
- 'share/**' | |
- 'vs-build/**' | |
pull_request: | |
types: [opened, synchronize, edited, reopened] #labeled, assigned] | |
# Pull request event triggers are unrelated to paths | |
# paths-ignore: | |
env: | |
FORTRAN_COMPILER: gfortran-12 | |
CXX_COMPILER: g++-12 | |
C_COMPILER: gcc-12 | |
GCOV_EXE: gcov-12 | |
CMAKE_BUILD_PARALLEL_LEVEL: 8 | |
jobs: | |
### BUILD JOBS | |
build-all-debug: | |
# Tests compiling in debug mode. | |
# Also compiles the Registry and generates new types files. | |
# Debug more speeds up the build. | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
- name: Setup workspace | |
run: cmake -E make_directory ${{runner.workspace}}/openfast/build | |
- name: Configure build | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/openfast/install \ | |
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ | |
-DCMAKE_CXX_COMPILER:STRING=${{env.CXX_COMPILER}} \ | |
-DCMAKE_C_COMPILER:STRING=${{env.C_COMPILER}} \ | |
-DCMAKE_BUILD_TYPE:STRING=DEBUG \ | |
-DBUILD_SHARED_LIBS:BOOL=OFF \ | |
-DGENERATE_TYPES=ON \ | |
-DVARIABLE_TRACKING=OFF \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCTEST_PLOT_ERRORS:BOOL=ON \ | |
${GITHUB_WORKSPACE} | |
# -DDOUBLE_PRECISION=OFF \ | |
- name: Build all | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target all | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-all-debug-${{ github.sha }} | |
build-all-debug-single: | |
# Tests compiling in debug mode with single precision. | |
# This workspace is not used by any other subtests, it checks type errors of the type ReKi/R8Ki | |
# Debug speeds up the build. | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Setup workspace | |
run: cmake -E make_directory ${{runner.workspace}}/openfast/build | |
- name: Configure build | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/openfast/install \ | |
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ | |
-DCMAKE_CXX_COMPILER:STRING=${{env.CXX_COMPILER}} \ | |
-DCMAKE_C_COMPILER:STRING=${{env.C_COMPILER}} \ | |
-DCMAKE_BUILD_TYPE:STRING=DEBUG \ | |
-DBUILD_SHARED_LIBS:BOOL=OFF \ | |
-DVARIABLE_TRACKING=OFF \ | |
-DDOUBLE_PRECISION:BOOL=OFF \ | |
${GITHUB_WORKSPACE} | |
- name: Build all | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target all | |
build-drivers-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
- name: Setup workspace | |
run: cmake -E make_directory ${{runner.workspace}}/openfast/build | |
- name: Configure build | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/openfast/install \ | |
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ | |
-DCMAKE_CXX_COMPILER:STRING=${{env.CXX_COMPILER}} \ | |
-DCMAKE_C_COMPILER:STRING=${{env.C_COMPILER}} \ | |
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | |
-DVARIABLE_TRACKING=OFF \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCTEST_PLOT_ERRORS:BOOL=ON \ | |
${GITHUB_WORKSPACE} | |
- name: Build module drivers | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_module_drivers | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-drivers-release-${{ github.sha }} | |
build-postlib-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev # gcovr | |
- name: Setup workspace | |
run: cmake -E make_directory ${{runner.workspace}}/openfast/build | |
- name: Configure build | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/openfast/install \ | |
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ | |
-DCMAKE_CXX_COMPILER:STRING=${{env.CXX_COMPILER}} \ | |
-DCMAKE_C_COMPILER:STRING=${{env.C_COMPILER}} \ | |
-DCMAKE_BUILD_TYPE:STRING=RELWITHDEBINFO \ | |
-DOPENMP:BOOL=ON \ | |
-DDOUBLE_PRECISION=ON \ | |
-DVARIABLE_TRACKING=OFF \ | |
-DBUILD_FASTFARM:BOOL=ON \ | |
-DBUILD_OPENFAST_CPP_API:BOOL=ON \ | |
-DBUILD_SHARED_LIBS:BOOL=OFF \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCTEST_PLOT_ERRORS:BOOL=ON \ | |
${GITHUB_WORKSPACE} | |
- name: Build openfast-postlib | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: cmake --build . --target openfast_postlib | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-postlib-release-${{ github.sha }} | |
build-interfaces-release: | |
runs-on: ubuntu-22.04 | |
needs: build-postlib-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-postlib-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Build OpenFAST C-Interfaces | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target openfastlib openfast_cpp openfastcpp aerodyn_inflow_c_binding moordyn_c_binding ifw_c_binding hydrodyn_c_binding regression_test_controllers | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-interfaces-release-${{ github.sha }} | |
build-openfast-release: | |
runs-on: ubuntu-22.04 | |
needs: build-postlib-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-postlib-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Build OpenFAST glue-code | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target openfast | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
build-fastfarm-release: | |
runs-on: ubuntu-22.04 | |
needs: build-postlib-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-postlib-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Build FAST.Farm | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target FAST.Farm | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-fastfarm-release-${{ github.sha }} | |
### BUILD AND TEST JOBS | |
build-test-uadriver-debug: | |
# UA driver requires -DUA_OUTS, cannot be compiled with other | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
- name: Setup workspace | |
run: cmake -E make_directory ${{runner.workspace}}/openfast/build | |
- name: Configure build | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/openfast/install \ | |
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \ | |
-DCMAKE_CXX_COMPILER:STRING=${{env.CXX_COMPILER}} \ | |
-DCMAKE_C_COMPILER:STRING=${{env.C_COMPILER}} \ | |
-DCMAKE_BUILD_TYPE:STRING=DEBUG \ | |
-DBUILD_SHARED_LIBS:BOOL=OFF \ | |
-DGENERATE_TYPES=ON \ | |
-DVARIABLE_TRACKING=OFF \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCTEST_PLOT_ERRORS:BOOL=ON \ | |
-DCMAKE_Fortran_FLAGS="-DUA_OUTS=ON" \ | |
${GITHUB_WORKSPACE} | |
- name: Build all | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target unsteadyaero_driver | |
- name: Run UnsteadyAero tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
shell: bash | |
run: | | |
ctest -VV -R "^ua_" | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-uadriver | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules/unsteadyaero | |
### TEST JOBS | |
rtest-module-drivers: | |
runs-on: ubuntu-22.04 | |
needs: build-drivers-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-drivers-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Run AeroDyn tests | |
uses: ./.github/actions/tests-module-aerodyn | |
with: | |
test-target: regression | |
- name: Run BeamDyn tests | |
uses: ./.github/actions/tests-module-beamdyn | |
with: | |
test-target: regression | |
- name: Run HydroDyn tests | |
uses: ./.github/actions/tests-module-hydrodyn | |
- name: Run InflowWind tests | |
uses: ./.github/actions/tests-module-inflowwind | |
with: | |
test-target: regression | |
- name: Run MoorDyn tests | |
uses: ./.github/actions/tests-module-moordyn | |
- name: Run SubDyn tests | |
uses: ./.github/actions/tests-module-subdyn | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-module-drivers | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
rtest-modules-debug: | |
runs-on: ubuntu-22.04 | |
needs: build-all-debug | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-all-debug-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCTEST_PLOT_ERRORS:BOOL=ON \ | |
${GITHUB_WORKSPACE} | |
cmake --build . --target regression_test_controllers | |
- name: Run AeroDyn tests | |
uses: ./.github/actions/tests-module-aerodyn | |
with: | |
# Don't run regression tests here since they currently fail inconsistently | |
test-target: unit | |
- name: Run BeamDyn tests | |
uses: ./.github/actions/tests-module-beamdyn | |
- name: Run HydroDyn tests | |
uses: ./.github/actions/tests-module-hydrodyn | |
- name: Run InflowWind tests | |
uses: ./.github/actions/tests-module-inflowwind | |
- name: Run MoorDyn tests | |
uses: ./.github/actions/tests-module-moordyn | |
- name: Run NWTC Library tests | |
uses: ./.github/actions/tests-module-nwtclibrary | |
- name: Run SubDyn tests | |
uses: ./.github/actions/tests-module-subdyn | |
- name: Run VersionInfo tests | |
uses: ./.github/actions/tests-module-version | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-modules-debug | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/unit_tests | |
rtest-interfaces: | |
runs-on: ubuntu-22.04 | |
needs: build-interfaces-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-interfaces-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" vtk | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Run Interface / API tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L "cpp|python|fastlib" | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-interfaces | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast-cpp | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/python | |
${{runner.workspace}}/openfast/build/reg_tests/modules/aerodyn | |
${{runner.workspace}}/openfast/build/reg_tests/modules/moordyn | |
${{runner.workspace}}/openfast/build/reg_tests/modules/inflowwind | |
${{runner.workspace}}/openfast/build/reg_tests/modules/hydrodyn | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast-cpp/5MW_Baseline | |
rtest-OF: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -j8 \ | |
-L openfast \ | |
-LE "cpp|linear|python|fastlib" \ | |
-E "5MW_OC4Semi_WSt_WavesWN|5MW_OC3Mnpl_DLL_WTurb_WavesIrr|5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth|5MW_OC3Trpd_DLL_WSt_WavesReg|5MW_Land_BD_DLL_WTurb" | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-5MW_OC4Semi_WSt_WavesWN: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L openfast -LE "cpp|linear|python" -R 5MW_OC4Semi_WSt_WavesWN | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-5MW_OC4Semi_WSt_WavesWN | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-5MW_OC3Mnpl_DLL_WTurb_WavesIrr: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L openfast -LE "cpp|linear|python" -R 5MW_OC3Mnpl_DLL_WTurb_WavesIrr | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-5MW_OC3Mnpl_DLL_WTurb_WavesIrr | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L openfast -LE "cpp|linear|python" -R 5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-5MW_OC4Jckt_DLL_WTurb_WavesIrr_MGrowth | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-5MW_OC3Trpd_DLL_WSt_WavesReg: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L openfast -LE "cpp|linear|python" -R 5MW_OC3Trpd_DLL_WSt_WavesReg | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-5MW_OC3Trpd_DLL_WSt_WavesReg | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-5MW_Land_BD_DLL_WTurb: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run 5MW tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -L openfast -LE "cpp|linear|python" -R 5MW_Land_BD_DLL_WTurb | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-5MW_Land_BD_DLL_WTurb | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-OF-linearization: | |
runs-on: ubuntu-22.04 | |
needs: build-openfast-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-openfast-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run OpenFAST linearization tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
ctest -VV -j8 -L linear | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-OF-linearization | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/modules | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/5MW_Baseline | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AOC | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/AWT27 | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/SWRT | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/UAE_VI | |
!${{runner.workspace}}/openfast/build/reg_tests/glue-codes/openfast/WP_Baseline | |
rtest-FF: | |
runs-on: ubuntu-22.04 | |
needs: build-fastfarm-release | |
steps: | |
- name: Cache the workspace | |
uses: actions/[email protected] | |
with: | |
path: ${{runner.workspace}} | |
key: build-fastfarm-release-${{ github.sha }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" | |
sudo apt-get update -y | |
sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev | |
- name: Configure Tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
run: | | |
cmake --build . --target regression_test_controllers | |
- name: Run FAST.Farm tests | |
working-directory: ${{runner.workspace}}/openfast/build | |
shell: bash | |
run: | | |
set OMP_NUM_THREADS=2 | |
ctest -VV -L fastfarm --verbose | |
- name: Failing test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: rtest-FF | |
path: | | |
${{runner.workspace}}/openfast/build/reg_tests/glue-codes/fast-farm |