Skip to content

Commit 5be5d52

Browse files
committed
.github/workflows/build.yml: correct paths and env usage
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
1 parent b7e6737 commit 5be5d52

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,14 @@ jobs:
116116
cp configs/config.${{ matrix.vendor }}_${{ matrix.model }}_${{ matrix.payload }} .config
117117
make olddefconfig
118118
make BUILD_TIMELESS=1
119-
- name: Rename and generate SHA256
120-
run: |
121-
mv $GITHUB_WORKSPACE/coreboot/build/coreboot.rom $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom
122-
sha256sum $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom > $GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom.sha256
123-
- name: Search for coreboot.rom
124-
run: |
125-
VERSION=$(echo ${GITHUB_REF#refs/heads/rel_} | tr '/' '_')
126-
find $GITHUB_WORKSPACE/coreboot -name qemu_q35_${VERSION}.rom
119+
mv coreboot/build/coreboot.rom coreboot/build/qemu_q35_${VERSION}.rom
120+
sha256sum coreboot/build/qemu_q35_${VERSION}.rom > coreboot/build/qemu_q35_${VERSION}.rom.sha256
127121
- name: Save artifacts
128122
uses: actions/upload-artifact@v4
129123
with:
130-
name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.payload }}_${VERSION}"
124+
name: "dasharo-${{ matrix.vendor }}-${{ matrix.model }}-${{ matrix.payload }}_${{ env.VERSION }}"
131125
path: |
132-
$GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom
133-
$GITHUB_WORKSPACE/coreboot/build/qemu_q35_${VERSION}.rom.sha256
126+
coreboot/build/qemu_q35_${{ env.VERSION }}.rom
127+
coreboot/build/qemu_q35_${{ env.VERSION }}.rom.sha256
134128
retention-days: 30
135129

0 commit comments

Comments
 (0)