Skip to content

Commit

Permalink
scripts/archive-source.sh: Archive subprojects
Browse files Browse the repository at this point in the history
Cherry-pick part of QEMU 2019cab for Vulkan dependency support before
merging future QEMU updates.
  • Loading branch information
mborgerson committed Dec 31, 2024
1 parent 08ce952 commit fde6b17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get install meson
# On push to master, increment patch version and create a new tag on release
- name: Increment patch version
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down
10 changes: 10 additions & 0 deletions scripts/archive-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ submodules="$submodules tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloa
submodules="$submodules ui/thirdparty/imgui ui/thirdparty/implot ui/thirdparty/httplib util/xxHash tomlplusplus genconfig"
submodules="$submodules hw/xbox/nv2a/pgraph/thirdparty/nv2a_vsh_cpu"

subprojects="glslang SPIRV-Reflect volk VulkanMemoryAllocator"

sub_deinit=""

function cleanup() {
Expand All @@ -56,6 +58,14 @@ function tree_ish() {

git archive --format tar "$(tree_ish)" > "$tar_file"
test $? -ne 0 && error "failed to archive qemu"

for sp in $subprojects; do
meson subprojects download $sp
# test $? -ne 0 && error "failed to download subproject $sp"
tar --append --file "$tar_file" --exclude=.git subprojects/$sp
test $? -ne 0 && error "failed to append subproject $sp to $tar_file"
done

for sm in $submodules; do
status="$(git submodule status "$sm")"
smhash="${status#[ +-]}"
Expand Down

0 comments on commit fde6b17

Please sign in to comment.