From 0281fc4c1b8df1d1da68ac2781c7937af3ada822 Mon Sep 17 00:00:00 2001 From: gangatp Date: Fri, 16 Feb 2024 21:50:31 +0530 Subject: [PATCH] generating mac debug build --- .github/workflows/build.yml | 18 ++++++++++++++++++ cmake/GenerateMake.sh | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96a237c83..7afe15b03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,24 @@ jobs: with: name: lib3mf.dylib path: build/lib3mf.dylib + + build-macos-debug: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - run: sh cmake/GenerateMake.sh "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64 -DCMAKE_BUILD_TYPE=Debug" + - run: cmake --build . + working-directory: ./build + - run: ctest -V + working-directory: ./build + - name: Archive Mac binary + uses: actions/upload-artifact@v2 + with: + name: lib3mf.debug.dylib + path: build/lib3mf.dylib + codecoverage-macos: runs-on: macos-latest steps: diff --git a/cmake/GenerateMake.sh b/cmake/GenerateMake.sh index 2dd76c964..d1a171407 100644 --- a/cmake/GenerateMake.sh +++ b/cmake/GenerateMake.sh @@ -4,4 +4,4 @@ basepath="$(cd "$(dirname "$0")" && pwd)" builddir="$basepath/../build" mkdir -p "$builddir" cd "$builddir" -cmake .. -G "Unix Makefiles" "$@" +cmake .. -G "Unix Makefiles" $@