Skip to content

Commit

Permalink
Merge pull request #10 from dfinity/or-fix-short-sha
Browse files Browse the repository at this point in the history
fix short sha derivation
  • Loading branch information
rikonor authored Aug 8, 2024
2 parents 9d3877c + 9954c41 commit a4634fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
bash /local/build/kernel.sh
- name: Set short sha
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV

- name: Publish
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
bash /local/build/ovmf.sh
- name: Set short sha
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV

- name: Publish
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
bash /local/build/qemu.sh
- name: Set short sha
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c -7)" >> $GITHUB_ENV

- name: Publish
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion build/kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ find "${BUILD_DIR}/.." -name "linux-image*.deb" -not -name "*dbg*" -exec dpkg -i

# Output
find "${BUILD_DIR}/.." -name "linux-image*.deb" -not -name "*dbg*" | xargs -I {} cp {} "${OUT_DIR}"
find "/boot" -name "initrd*" -or -name "vmlinuz*" -or -name "config*" | xargs -I {} cp {} "${OUT_DIR}"
find "/boot" -name "initrd*" -or -name "vmlinuz*" -or -name "config*" | xargs -I {} cp {} "${OUT_DIR}"
2 changes: 1 addition & 1 deletion build/ovmf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ build \
-n $(nproc)

# Output
cp "${SOURCE_DIR}/Build/AmdSev/DEBUG_GCC5/FV/OVMF.fd" "${OUT_DIR}"
cp "${SOURCE_DIR}/Build/AmdSev/DEBUG_GCC5/FV/OVMF.fd" "${OUT_DIR}"
2 changes: 1 addition & 1 deletion build/qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ make install
# Package
checkinstall -D -y \
--pkgname=qemu \
--pkgversion=8
--pkgversion=8

0 comments on commit a4634fa

Please sign in to comment.