Skip to content

Commit

Permalink
temp update
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Feb 20, 2024
1 parent 8b620ff commit 501d405
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/publish-qemu-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 ${{github.workspace}}/qemu-windows-${{github.event.release.tag_name}}.zip *
cd ../Linux/ && tar -czf ${{github.workspace}}/qemu-linux-${{github.event.release.tag_name}}.tar.gz *
- name: Upload Ext-Dep (Artifact)
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 501d405

Please sign in to comment.