@@ -588,6 +588,51 @@ jobs:
588588 with :
589589 name : macos-clang-sanitizer-install
590590 path : macos-clang-sanitizer-install.tar.gz
591+ macos-clang-build-debug :
592+ needs :
593+ - clang-format
594+ - python-lint
595+ runs-on : macOS-latest
596+ steps :
597+ - uses : actions/checkout@v4
598+ with :
599+ submodules : recursive
600+ - name : Setup environment
601+ run : |
602+ brew update-reset
603+ brew install ninja mpich llvm
604+ brew install libomp
605+ brew link libomp --overwrite --force
606+ brew install openssl
607+ brew link openssl --overwrite --force
608+ - name : ccache
609+ uses : hendrikmuhs/ccache-action@v1.2
610+ with :
611+ key : ${{ runner.os }}-clang
612+ create-symlink : true
613+ max-size : 1G
614+ - name : CMake configure
615+ run : >
616+ cmake -S . -B build
617+ -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
618+ -G Ninja -DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
619+ -DCMAKE_CXX_FLAGS="-I$(brew --prefix)/opt/libomp/include"
620+ -D CMAKE_BUILD_TYPE=DEBUG
621+ -DCMAKE_INSTALL_PREFIX=install
622+ - name : Build project
623+ run : |
624+ cmake --build build --parallel
625+ - name : Install project
626+ run : |
627+ cmake --build build --target install
628+ - name : Archive installed package
629+ run : |
630+ tar -czvf macos-clang-debug-install.tar.gz -C install .
631+ - name : Upload installed package
632+ uses : actions/upload-artifact@v4
633+ with :
634+ name : macos-clang-debug-install
635+ path : macos-clang-debug-install.tar.gz
591636 macos-clang-test :
592637 needs :
593638 - macos-clang-build
@@ -733,6 +778,55 @@ jobs:
733778 with :
734779 name : windows-msvc-install
735780 path : windows-msvc-install.zip
781+ windows-msvc-build-debug :
782+ needs :
783+ - clang-format
784+ - python-lint
785+ runs-on : windows-latest
786+ defaults :
787+ run :
788+ shell : bash
789+ steps :
790+ - uses : actions/checkout@v4
791+ with :
792+ submodules : recursive
793+ - name : Add msbuild to PATH
794+ uses : microsoft/setup-msbuild@v2
795+ with :
796+ vs-version : ' latest'
797+ - name : Setup MPI
798+ uses : mpi4py/setup-mpi@v1
799+ with :
800+ mpi : msmpi
801+ - name : Setup ccache
802+ uses : Chocobo1/setup-ccache-action@v1
803+ with :
804+ windows_compile_environment : msvc
805+ - name : Setup ninja
806+ uses : seanmiddleditch/gha-setup-ninja@v6
807+ - name : Setup MSVC for Ninja again
808+ uses : ilammy/msvc-dev-cmd@v1
809+ - name : CMake configure
810+ shell : bash
811+ run : >
812+ cmake -S . -B build -G Ninja -D CMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
813+ -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
814+ -D CMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=install
815+ - name : Build project
816+ shell : bash
817+ run : |
818+ cmake --build build --config Debug --parallel
819+ - name : Install project
820+ run : |
821+ cmake --build build --target install
822+ - name : Archive installed package
823+ run : Compress-Archive -Path install -DestinationPath windows-msvc-debug-install.zip
824+ shell : pwsh
825+ - name : Upload installed package
826+ uses : actions/upload-artifact@v4
827+ with :
828+ name : windows-msvc-debug-install
829+ path : windows-msvc-debug-install.zip
736830 windows-msvc-test :
737831 needs :
738832 - windows-msvc-build
0 commit comments