diff --git a/.github/workflows/RunnerFullCI_GNU.yml b/.github/workflows/RunnerFullCI_GNU.yml new file mode 100644 index 00000000..c1aece7c --- /dev/null +++ b/.github/workflows/RunnerFullCI_GNU.yml @@ -0,0 +1,38 @@ +# This is a basic workflow to help you get started with Actions +name: FullCI4PR_gnu + +defaults: + run: + shell: bash + +# Controls when the action will run. Triggers the workflow on pull request +# events but only for the master branch +on: [pull_request, fork] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a job called "bld_gnu_ompi" + Full_CI_GNU_double: + # The type of runner that the job will run on + runs-on: [self-hosted, linux, x64] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + with: + clean: true + + # Configure-Build-Run-Run on 4 cores + - name: Compile GNU openMPI CPU + run: | + ls -ltr ~/.bashrc + source /etc/profile.d/lmod.sh + source ~/.bash_aliases + module load foss + export FC=mpif90 + cmake -S . -B build -DBUILD_TESTING_FULL=ON + cmake --build build -j 4 + cmake --install build + ctest --test-dir build --output-on-failure + rm -rf build diff --git a/cmake/decomp2d/downloadBuild2decomp.cmake.in b/cmake/decomp2d/downloadBuild2decomp.cmake.in index 8b727f37..17c79607 100644 --- a/cmake/decomp2d/downloadBuild2decomp.cmake.in +++ b/cmake/decomp2d/downloadBuild2decomp.cmake.in @@ -11,6 +11,15 @@ ExternalProject_Add(downloadBuild2decomp GIT_TAG "v2.0.4" SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/decomp2d-src" INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/decomp2d-opt" + # Configure step + CMAKE_ARGS -DDOUBLE_PRECISION=ON + + # Build step + BUILD_COMMAND ${CMAKE_COMMAND} --build . -j 4 + + # Install step + INSTALL_COMMAND ${CMAKE_COMMAND} --install . + TEST_COMMAND "" )