Skip to content

Commit

Permalink
.github/workflows/build.yml: unique names for artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan authored and pietrushnic committed Oct 22, 2023
1 parent b25f7e6 commit 43e6175
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
run: |
if [ -f "Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd" ]; then
echo "RELEASE build successful. OVMF firmware image files found."
cp Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd OVMF_CODE_RELEASE.fd
cp Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd OVMF_VARS_RELEASE.fd
else
echo "RELEASE build failed. OVMF firmware image files not found."
exit 1
Expand All @@ -47,6 +49,8 @@ jobs:
run: |
if [ -f "Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd" ] && [ -f "Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd" ]; then
echo "DEBUG build successful. OVMF firmware image files found."
cp Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd OVMF_CODE_DEBUG.fd
cp Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd OVMF_VARS_DEBUG.fd
else
echo "DEBUG build failed. OVMF firmware image files not found."
exit 1
Expand All @@ -57,17 +61,17 @@ jobs:
with:
name: ovmf-artifacts # Name for the artifact
path: |
Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd
Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd
Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd
Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd
OVMF_CODE_RELEASE.fd
OVMF_VARS_RELEASE.fd
OVMF_CODE_DEBUG.fd
OVMF_VARS_DEBUG.fd
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.event.ref, 'refs/tags/dasharo_qemu')
with:
files: |
Build/OvmfX64/RELEASE_GCC5/FV/OVMF_CODE.fd
Build/OvmfX64/RELEASE_GCC5/FV/OVMF_VARS.fd
Build/OvmfX64/DEBUG_GCC5/FV/OVMF_CODE.fd
Build/OvmfX64/DEBUG_GCC5/FV/OVMF_VARS.fd
OVMF_CODE_RELEASE.fd
OVMF_VARS_RELEASE.fd
OVMF_CODE_DEBUG.fd
OVMF_VARS_DEBUG.fd

0 comments on commit 43e6175

Please sign in to comment.