Going back using $RUNNER_TEMP for the qemu image due to not enough space on $GITHUB_WORKSPACE

This commit is contained in:
Thorsten Sommer 2024-06-11 07:43:38 +02:00
parent 32bc7a00d4
commit a76fc4be10
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -231,7 +231,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
id: linux_arm_cache id: linux_arm_cache
with: with:
path: qemu/linux_arm_qemu_cache.img path: $RUNNER_TEMP/linux_arm_qemu_cache.img
# When the entire key matches, Rust might just create the bundles using the current .NET build: # When the entire key matches, Rust might just create the bundles using the current .NET build:
key: target-linux-arm64-rust-${{ env.RUST_VERSION }}-dependencies-${{ env.CARGO_LOCK_HASH }} key: target-linux-arm64-rust-${{ env.RUST_VERSION }}-dependencies-${{ env.CARGO_LOCK_HASH }}
@ -281,14 +281,13 @@ jobs:
- name: Add the built runner image to the cache - name: Add the built runner image to the cache
if: steps.linux_arm_cache.outputs.cache-hit != 'true' if: steps.linux_arm_cache.outputs.cache-hit != 'true'
run: | run: |
mkdir -p qemu mv ${{ steps.build-linux-arm-runner.outputs.image }} $RUNNER_TEMP/linux_arm_qemu_cache.img
mv ${{ steps.build-linux-arm-runner.outputs.image }} qemu/linux_arm_qemu_cache.img
- name: Compiling the Rust runtime - name: Compiling the Rust runtime
uses: pguyot/arm-runner-action@v2.6.5 uses: pguyot/arm-runner-action@v2.6.5
id: build-linux-arm id: build-linux-arm
with: with:
base_image: file://$GITHUB_WORKSPACE/qemu/linux_arm_qemu_cache.img base_image: file://$RUNNER_TEMP/linux_arm_qemu_cache.img
cpu: cortex-a53 cpu: cortex-a53
optimize_image: false optimize_image: false
copy_artifact_path: runtime copy_artifact_path: runtime
@ -309,16 +308,12 @@ jobs:
echo "Searching for linux_arm_qemu_cache.img" echo "Searching for linux_arm_qemu_cache.img"
find $RUNNER_TEMP -name 'linux_arm_qemu_cache.img' -print 2>/dev/null find $RUNNER_TEMP -name 'linux_arm_qemu_cache.img' -print 2>/dev/null
echo "Searching for linux_arm_qemu_cache.img, location 2:"
find . -name 'linux_arm_qemu_cache.img' -print 2>/dev/null
echo "Searching for mind-work-ai-studio_*.deb" echo "Searching for mind-work-ai-studio_*.deb"
find . -name 'mind-work-ai-studio_*.deb' -print 2>/dev/null find . -name 'mind-work-ai-studio_*.deb' -print 2>/dev/null
- name: Update the runner image to cache the Rust runtime build - name: Update the runner image to cache the Rust runtime build
run: | run: |
mkdir -p qemu mv ${{ steps.build-linux-arm.outputs.image }} $RUNNER_TEMP/linux_arm_qemu_cache.img
mv ${{ steps.build-linux-arm.outputs.image }} qemu/linux_arm_qemu_cache.img
- name: Upload artifact (Linux - Debian Package) - name: Upload artifact (Linux - Debian Package)
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4