Skip to content

Commit

Permalink
CI: Use latest cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AfoHT committed Jan 17, 2024
1 parent 07447a6 commit 6ecd47e
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:

- name: Cache QEMU build
id: cache-qemu
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: $GITHUB_WORKSPACE/qemu.tar
key: ${{ runner.OS }}-qemu-${{ env.QEMU_VERSION }}
Expand All @@ -200,6 +200,7 @@ jobs:
continue-on-error: true
run: |
ls -l qemu-${{ env.QEMU_VERSION }}/build
ls -l $GITHUB_WORKSPACE/
- if: ${{ steps.cache-qemu.outputs.cache-hit != 'true' }}
name: Download QEMU
Expand All @@ -225,7 +226,7 @@ jobs:
name: Archive QEMU build
run: |
cd qemu-${{ env.QEMU_VERSION }}/build
tar -cf ../../qemu.tar *
tar -cf $GITHUB_WORKSPACE/qemu.tar *
- name: Store QEMU build
uses: actions/upload-artifact@v4
Expand All @@ -238,6 +239,7 @@ jobs:
run: |
pwd
ls -l
ls -l $GITHUB_WORKSPACE/
ls -l qemu-${{ env.QEMU_VERSION }}
ls -l qemu-${{ env.QEMU_VERSION }}/build
Expand Down Expand Up @@ -280,23 +282,12 @@ jobs:
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- name: Cache QEMU build
id: cache-qemu-run
uses: actions/cache@v3
with:
path: qemu.tar
key: ${{ runner.OS }}-qemu-${{ env.QEMU_VERSION }}
restore-keys: |
${{ runner.OS }}-qemu-${{ env.QEMU_VERSION }}
${{ runner.OS }}-qemu-
- name: Install QEMU to get dependencies
run: |
sudo apt update
sudo apt install -y qemu-system-arm
- if: ${{ steps.cache-qemu.outputs.cache-hit != 'true' }}
name: Download built QEMU
- name: Download built QEMU
uses: actions/download-artifact@v4
with:
name: qemu
Expand Down

0 comments on commit 6ecd47e

Please sign in to comment.