Skip to content

Commit e552241

Browse files
authored
Update cmake-single-platform.yml
1 parent 725c55f commit e552241

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

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

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# vulkan-components: Vulkan-Headers, Vulkan-Loader
3737
# vulkan-use-cache: true
3838

39-
# --- STANDARD BUILD ---
39+
# --- STANDARD BUILD ---
4040
- name: Configure CMake (Standard)
4141
run: cmake -B ${{github.workspace}}/build-standard -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_MEDICORP=OFF
4242

@@ -52,9 +52,12 @@ jobs:
5252
run: cmake --build . --target package --config ${{env.BUILD_TYPE}}
5353

5454
- name: Rename Standard Package
55+
shell: pwsh
5556
run: |
56-
cd build-standard
57-
for f in *.zip; do mv "$f" "EDVoice-Standard-${{env.BUILD_TYPE}}.zip"; done
57+
Set-Location build-standard
58+
Get-ChildItem -Filter *.zip | ForEach-Object {
59+
Rename-Item $_.FullName "EDVoice-Standard-${{env.BUILD_TYPE}}.zip"
60+
}
5861
5962
# --- MEDICORP BUILD ---
6063
- name: Configure CMake (MediCorp)
@@ -70,3 +73,22 @@ jobs:
7073
- name: Package (MediCorp)
7174
working-directory: ${{github.workspace}}/build-medicorp
7275
run: cmake --build . --target package --config ${{env.BUILD_TYPE}}
76+
77+
- name: Rename MediCorp Package
78+
shell: pwsh
79+
run: |
80+
Set-Location build-medicorp
81+
Get-ChildItem -Filter *.zip | ForEach-Object {
82+
Rename-Item $_.FullName "EDVoice-MediCorp-${{env.BUILD_TYPE}}.zip"
83+
}
84+
85+
# --- UPLOAD TO RELEASE ---
86+
- name: Upload Release Assets
87+
if: github.event_name == 'release'
88+
uses: softprops/action-gh-release@v2
89+
with:
90+
files: |
91+
${{github.workspace}}/build-standard/EDVoice-Standard-${{env.BUILD_TYPE}}.zip
92+
${{github.workspace}}/build-medicorp/EDVoice-MediCorp-${{env.BUILD_TYPE}}.zip
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.ACTION_UPDATE_RELEASE }}

0 commit comments

Comments
 (0)