@@ -36,29 +36,37 @@ jobs:
3636 # vulkan-components: Vulkan-Headers, Vulkan-Loader
3737 # vulkan-use-cache: true
3838
39- - name : Configure CMake
40- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
41- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
42- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
39+ # --- STANDARD BUILD ---
40+ - name : Configure CMake (Standard)
41+ run : cmake -B ${{github.workspace}}/build-standard -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_MEDICORP=OFF
4342
44- - name : Build
45- # Build your program with the given configuration
46- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
43+ - name : Build (Standard)
44+ run : cmake --build ${{github.workspace}}/build-standard --config ${{env.BUILD_TYPE}}
4745
48- - name : Test
49- working-directory : ${{github.workspace}}/build
50- # Execute tests defined by the CMake configuration.
51- # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
46+ - name : Test (Standard)
47+ working-directory : ${{github.workspace}}/build-standard
5248 run : ctest -C ${{env.BUILD_TYPE}}
5349
54- - name : Package with CPack
55- working-directory : ${{github.workspace}}/build
50+ - name : Package (Standard)
51+ working-directory : ${{github.workspace}}/build-standard
5652 run : cmake --build . --target package --config ${{env.BUILD_TYPE}}
5753
58- - name : Upload Release Asset
59- if : github.event_name == 'release'
60- uses : softprops/action-gh-release@v2
61- with :
62- files : ${{github.workspace}}/build/*.zip
63- env :
64- GITHUB_TOKEN : ${{ secrets.ACTION_UPDATE_RELEASE }}
54+ - name : Rename Standard Package
55+ run : |
56+ cd build-standard
57+ for f in *.zip; do mv "$f" "EDVoice-Standard-${{env.BUILD_TYPE}}.zip"; done
58+
59+ # --- MEDICORP BUILD ---
60+ - name : Configure CMake (MediCorp)
61+ run : cmake -B ${{github.workspace}}/build-medicorp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_MEDICORP=ON
62+
63+ - name : Build (MediCorp)
64+ run : cmake --build ${{github.workspace}}/build-medicorp --config ${{env.BUILD_TYPE}}
65+
66+ - name : Test (MediCorp)
67+ working-directory : ${{github.workspace}}/build-medicorp
68+ run : ctest -C ${{env.BUILD_TYPE}}
69+
70+ - name : Package (MediCorp)
71+ working-directory : ${{github.workspace}}/build-medicorp
72+ run : cmake --build . --target package --config ${{env.BUILD_TYPE}}
0 commit comments