From 91fead9ede6f28a5c60ce9ebdd05b67db6e672a5 Mon Sep 17 00:00:00 2001 From: Charlie Vanaret Date: Sun, 8 Dec 2024 01:11:23 +0100 Subject: [PATCH] Added Debug mode to build-macos.yml --- .github/workflows/build-macos.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 6b7624bc..be1aa4b0 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -14,10 +14,6 @@ on: pull_request: branches: [ "main" ] -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - jobs: build: # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. @@ -29,6 +25,8 @@ jobs: os: [macos-latest] architecture: [x64, arm64] compiler: [gcc] + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: [Release, Debug] steps: - name: Checkout repository @@ -46,8 +44,8 @@ jobs: - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=${{env.FC}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=${{env.FC}} - name: Build # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}}