Skip to content

Commit

Permalink
CI(formatting): break long cmake into multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Oct 16, 2024
1 parent eab99e7 commit e5af29d
Showing 1 changed file with 48 additions and 12 deletions.
60 changes: 48 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on: [push, pull_request]
Expand All @@ -15,7 +16,14 @@ jobs:
-DSPIRIT_UI_CXX_USE_QT=OFF
-DSPIRIT_ENABLE_PINNING=ON
-DSPIRIT_ENABLE_DEFECTS=ON
SOURCES: "find core/include/ core/src/ ui-cpp/utility/ ui-cpp/ui-imgui/include/ ui-cpp/ui-imgui/src/ -iname *.hpp -o -iname *.cpp"
SOURCES: >
find
core/include/
core/src/
ui-cpp/utility/
ui-cpp/ui-imgui/include/
ui-cpp/ui-imgui/src/
-iname *.hpp -o -iname *.cpp"
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -120,7 +128,11 @@ jobs:
if: matrix.parallelisation == 'openmp'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPIRIT_USE_OPENMP=ON $CMAKE_FLAGS
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DSPIRIT_USE_OPENMP=ON
$CMAKE_FLAGS
- name: 🛠 Build
shell: bash
Expand Down Expand Up @@ -325,7 +337,11 @@ jobs:
if: matrix.parallelisation == 'openmp'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS -DSPIRIT_USE_OPENMP=ON
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
$CMAKE_FLAGS
-DSPIRIT_USE_OPENMP=ON
- name: ⚙ Configure with CUDA
if: matrix.parallelisation == 'cuda'
Expand Down Expand Up @@ -564,13 +580,22 @@ jobs:
if: matrix.configuration == 'single-precision'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPIRIT_SCALAR_TYPE="float" $CMAKE_FLAGS
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DSPIRIT_SCALAR_TYPE="float"
$CMAKE_FLAGS
- name: ⚙ Configure pinning-and-defects build
if: matrix.configuration == 'pinning-and-defects'
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPIRIT_ENABLE_PINNING=ON -DSPIRIT_ENABLE_DEFECTS=ON $CMAKE_FLAGS
run: >
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$Debug
-DSPIRIT_ENABLE_PINNING=ON
-DSPIRIT_ENABLE_DEFECTS=ON
$CMAKE_FLAGS
- name: 🛠 Build
shell: bash
Expand All @@ -591,7 +616,11 @@ jobs:
- os: ubuntu-22.04
env:
BUILD_TYPE: Release
CMAKE_FLAGS: -DSPIRIT_UI_USE_IMGUI=OFF -DSPIRIT_UI_CXX_USE_QT=OFF -DSPIRIT_USE_CUDA=ON -DSPIRIT_CUDA_ARCH=70
CMAKE_FLAGS: >
-DSPIRIT_UI_USE_IMGUI=OFF
-DSPIRIT_UI_CXX_USE_QT=OFF
-DSPIRIT_USE_CUDA=ON
-DSPIRIT_CUDA_ARCH=70
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -692,17 +721,24 @@ jobs:
if: matrix.target == 'mobile'
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
source ${{runner.workspace}}/emsdk/emsdk_env.sh
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPIRIT_UI_USE_IMGUI=OFF $CMAKE_FLAGS -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
run: >
source ${{runner.workspace}}/emsdk/emsdk_env.sh;
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DSPIRIT_UI_USE_IMGUI=OFF
$CMAKE_FLAGS
-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
- name: ⚙ Configure (desktop)
if: matrix.target == 'desktop'
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
source ${{runner.workspace}}/emsdk/emsdk_env.sh
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSPIRIT_UI_USE_IMGUI=ON $CMAKE_FLAGS -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
run: >
source ${{runner.workspace}}/emsdk/emsdk_env.sh;
cmake $GITHUB_WORKSPACE
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
-DSPIRIT_UI_USE_IMGUI=ON $CMAKE_FLAGS
-DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
- name: 🛠 Build
shell: bash
Expand Down

0 comments on commit e5af29d

Please sign in to comment.