Skip to content

Commit a69fc6c

Browse files
committed
merge
2 parents 647a6e6 + 9e21073 commit a69fc6c

File tree

1 file changed

+50
-15
lines changed

1 file changed

+50
-15
lines changed

.github/workflows/cmake-single-platform.yml

Lines changed: 50 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,64 @@ 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
54+
- name: Rename Standard Package
55+
shell: pwsh
56+
run: |
57+
$version = "${{ github.event.release.tag_name }}"
58+
Set-Location build-standard
59+
Get-ChildItem -Filter *.zip | ForEach-Object {
60+
$newName = "EDVoice-Standard-$version.zip"
61+
Rename-Item $_.FullName $newName
62+
Write-Host "Renamed to $newName"
63+
}
64+
# --- MEDICORP BUILD ---
65+
- name: Configure CMake (MediCorp)
66+
run: cmake -B ${{github.workspace}}/build-medicorp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_MEDICORP=ON
67+
68+
- name: Build (MediCorp)
69+
run: cmake --build ${{github.workspace}}/build-medicorp --config ${{env.BUILD_TYPE}}
70+
71+
- name: Test (MediCorp)
72+
working-directory: ${{github.workspace}}/build-medicorp
73+
run: ctest -C ${{env.BUILD_TYPE}}
74+
75+
- name: Package (MediCorp)
76+
working-directory: ${{github.workspace}}/build-medicorp
77+
run: cmake --build . --target package --config ${{env.BUILD_TYPE}}
78+
79+
- name: Rename MediCorp Package
80+
shell: pwsh
81+
run: |
82+
$version = "${{ github.event.release.tag_name }}"
83+
Set-Location build-medicorp
84+
Get-ChildItem -Filter *.zip | ForEach-Object {
85+
$newName = "EDVoice-MediCorp-$version.zip"
86+
Rename-Item $_.FullName $newName
87+
Write-Host "Renamed to $newName"
88+
}
89+
90+
# --- UPLOAD TO RELEASE ---
91+
- name: Upload Release Assets
5992
if: github.event_name == 'release'
6093
uses: softprops/action-gh-release@v2
6194
with:
62-
files: ${{github.workspace}}/build/*.zip
95+
files: |
96+
${{github.workspace}}/build-standard/EDVoice-Standard-${{ github.event.release.tag_name }}.zip
97+
${{github.workspace}}/build-medicorp/EDVoice-MediCorp-${{ github.event.release.tag_name }}.zip
6398
env:
6499
GITHUB_TOKEN: ${{ secrets.ACTION_UPDATE_RELEASE }}

0 commit comments

Comments
 (0)