diff --git a/.github/workflows/publish-qemu-bin.yml b/.github/workflows/publish-qemu-bin.yml index 7744e173a6..54588a49de 100644 --- a/.github/workflows/publish-qemu-bin.yml +++ b/.github/workflows/publish-qemu-bin.yml @@ -118,6 +118,13 @@ jobs: contents: write steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Get current Qemu version + id: qemu-version + run: | + qemuVersion=$(jq -r .linux $QEMU_VERSION_FILE) + echo "QEMU_VERSION=$qemuVersion" >> $GITHUB_OUTPUT - name: Download Windows Qemu Artifact uses: actions/download-artifact@v4 with: @@ -128,17 +135,27 @@ jobs: with: name: qemu-linux path: linux + - name: Download Qemu License + env: + QEMU_VERSION: ${{ steps.qemu-version.outputs.QEMU_VERSION }} + run: | + curl -L https://raw.githubusercontent.com/qemu/qemu/$QEMU_VERSION/COPYING -o COPYING + curl -L https://raw.githubusercontent.com/qemu/qemu/QEMU_VERSION/LICENSE -o LICENSE - name: Stage Ext-Dep run: | mkdir -p qemu/Windows/ mkdir -p qemu/Linux/ mv windows/ qemu/Windows/bin/ mv linux/ qemu/Linux/bin/ + cp COPYING qemu/Windows/ + cp COPYING qemu/Linux/ + cp LICENSE qemu/Windows/ + cp LICENSE qemu/Linux/ chmod a+x qemu/Linux/bin/* - name: Package Ext-Dep run: | - zip -r qemu-windows-${{github.event.release.tag_name}}.zip qemu/Windows/bin* - tar -czf qemu-linux-${{github.event.release.tag_name}}.tar.gz qemu/Linux/bin* + cd qemu/Windows/ && zip -r qemu-windows-${{github.event.release.tag_name}}.zip bin* + cd ../Linux/ && tar -czf qemu-linux-${{github.event.release.tag_name}}.tar.gz bin* - name: Upload Ext-Dep (Artifact) uses: actions/upload-artifact@v4