From ee97379e454804a8f3cdc657fbfe7b9d93e1d6d1 Mon Sep 17 00:00:00 2001 From: jtzhpf Date: Thu, 28 Dec 2023 19:17:51 +0800 Subject: [PATCH] fix qemu --- .../workflows/actions/setup-qemu/action.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions/setup-qemu/action.yml b/.github/workflows/actions/setup-qemu/action.yml index bb01ddcb1c..6419ee2373 100644 --- a/.github/workflows/actions/setup-qemu/action.yml +++ b/.github/workflows/actions/setup-qemu/action.yml @@ -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: @@ -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 @@ -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: |