Skip to content

Commit

Permalink
fix qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
jtzhpf committed Dec 28, 2023
1 parent ff6fa46 commit ee97379
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/actions/setup-qemu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ runs:
uses: actions/cache/restore@v3
with:
path: qemu_build
key: qemu-${{ inputs.qemu-version }}, qemu-6.2.50
key: qemu-${{ inputs.qemu-version }}
- name: Cache QEMU for loongarch
id: cache-qemu
uses: actions/cache/restore@v3
with:
path: qemu_build_la
key: qemu-6.2.50
- name: Download and build QEMU
if: steps.cache-qemu.outputs.cache-hit != 'true'
env:
Expand All @@ -32,7 +38,7 @@ runs:
if: steps.cache-qemu.outputs.cache-hit != 'true'
env:
QEMU_PATH: qemu-6.2.50
PREFIX: ${{ github.workspace }}/qemu_build
PREFIX: ${{ github.workspace }}/qemu_build_la
shell: bash
run: |
git clone https://github.com/foxsen/qemu.git $QEMU_PATH
Expand All @@ -46,12 +52,19 @@ runs:
if: steps.cache-qemu.outputs.cache-hit != 'true'
with:
path: qemu_build
key: qemu-${{ inputs.qemu-version }}, qemu-6.2.50
key: qemu-${{ inputs.qemu-version }}

- uses: actions/cache/save@v3
if: steps.cache-qemu.outputs.cache-hit != 'true'
with:
path: qemu_build
key: qemu-6.2.50

- name: Install QEMU
shell: bash
run: |
echo "$PWD/qemu_build/bin" >> $GITHUB_PATH
echo "$PWD/qemu_build_la/bin" >> $GITHUB_PATH
- name: Verify installation
shell: bash
run: |
Expand Down

0 comments on commit ee97379

Please sign in to comment.