Skip to content

Commit

Permalink
build all configurations with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 9, 2024
1 parent 39e5335 commit 5594956
Showing 1 changed file with 54 additions and 19 deletions.
73 changes: 54 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ env:
-DMEGAMOL_USE_PROFILING=ON
-DMEGAMOL_USE_STACKTRACE=ON
-DMEGAMOL_USE_TRACY=ON
-DMEGAMOL_USE_VTKM=OFF
-DMEGAMOL_USE_VTKM=ON
MM_NO_GL_CONFIG: >-
-DMEGAMOL_VCPKG_DOWNLOAD_CACHE=ON
-DMEGAMOL_WARNING_LEVEL="Off"
-DMEGAMOL_USE_OPENGL=OFF
jobs:
vcpkg_cache:
Expand Down Expand Up @@ -111,41 +115,72 @@ jobs:
CXX: ${{ matrix.job.cxx }}
VCPKG_BINARY_SOURCES: "clear;http,https://vcpkg-cache.megamol.org/{triplet}-{name}-{sha},readwrite,Authorization: Token ${{ secrets.CACHING_SERVER_SECRET }}"
build_windows:
if: ${{ always() }}
needs: vcpkg_cache
strategy:
fail-fast: false
matrix:
configuration: [Release]
name: "Windows-Build (${{ matrix.configuration }})"
job:
- name: Release
configuration: Release
options: ${{ env.MM_DEFAULT_CONFIG }}
- name: Debug
configuration: Debug
options: ${{ env.MM_DEFAULT_CONFIG }}
- name: Release-No-GL
configuration: Release
options: ${{ env.MM_NO_GL_CONFIG }}
name: "Windows (${{ matrix.job.name }})"
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Configure
run: >-
cmake -S . -B ${{ github.workspace }}/build -G "Visual Studio 17 2022"
${{ env.MM_DEFAULT_CONFIG }}
cmake -S . -B $GITHUB_WORKSPACE/build -G "Visual Studio 17 2022"
${{ matrix.job.options }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }} --parallel 2
run: cmake --build $GITHUB_WORKSPACE/build --config ${{ matrix.job.configuration }} --parallel 2
build_linux:
if: ${{ always() }}
needs: vcpkg_cache
strategy:
fail-fast: false
matrix:
docker_image: [megamol_ci_ubuntu]
compiler:
- cc: clang-14
cxx: clang++-14
configuration: [Release]
name: "Linux-Build (${{ matrix.compiler.cc }}, ${{ matrix.configuration }})"
runs-on: ubuntu-22.04
job:
- name: 'GCC13 Debug'
container: megamol_ci_ubuntu
cc: gcc-13
cxx: g++-13
configuration: Debug
options: ${{ env.MM_DEFAULT_CONFIG }}
- name: 'Clang18 Release'
container: megamol_ci_ubuntu
cc: clang-18
cxx: clang++-18
configuration: Release
options: ${{ env.MM_DEFAULT_CONFIG }}
- name: 'GCC13 Release No-GL'
container: megamol_ci_ubuntu
cc: gcc-13
cxx: g++-13
configuration: Release
options: ${{ env.MM_NO_GL_CONFIG }}
name: "Linux (${{ matrix.job.name }})"
runs-on: ubuntu-24.04
container:
image: ghcr.io/unistuttgart-visus/${{ matrix.docker_image }}:master
image: ghcr.io/unistuttgart-visus/${{ matrix.job.container }}:master
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Configure
run: >-
cmake -S . -B ${{ github.workspace }}/build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
${{ env.MM_DEFAULT_CONFIG }}
cmake -S . -B $GITHUB_WORKSPACE/build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.job.configuration }}
${{ matrix.job.options }}
- name: Build
run: cmake --build ${{ github.workspace }}/build
run: cmake --build $GITHUB_WORKSPACE/build
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
CC: ${{ matrix.job.cc }}
CXX: ${{ matrix.job.cxx }}

0 comments on commit 5594956

Please sign in to comment.