Pipeline: update artifact deletion step to ensure previous artifacts are removed

This commit is contained in:
Thorsten Sommer 2025-03-13 10:16:28 +01:00
parent 52c8052ce6
commit 1b087349cc
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -539,10 +539,13 @@ jobs:
run: | run: |
mv ${{ steps.build-linux-arm-runner.outputs.image }} ${{ runner.temp }}/linux_arm_qemu_cache.img mv ${{ steps.build-linux-arm-runner.outputs.image }} ${{ runner.temp }}/linux_arm_qemu_cache.img
- name: Delete previous artifact, which may exist due to caching (Linux - Debian Package) #
if: ${{ env.SKIP != 'true' }} # This step does not work, because we start a VM with qemu to run the build.
run: | #
rm -f result/target/aarch64-unknown-linux-gnu/release/bundle/deb/mind-work-ai-studio_*.deb #- name: Delete previous artifact, which may exist due to caching (Linux - Debian Package)
# if: ${{ env.SKIP != 'true' }}
# run: |
# rm -f result/target/aarch64-unknown-linux-gnu/release/bundle/deb/mind-work-ai-studio_*.deb
- name: Build Tauri project - name: Build Tauri project
if: ${{ env.SKIP != 'true' }} if: ${{ env.SKIP != 'true' }}
@ -568,6 +571,9 @@ jobs:
shell: /bin/bash shell: /bin/bash
commands: | commands: |
# Delete all previous artifacts, which may exist due to caching:
rm -f result/target/aarch64-unknown-linux-gnu/release/bundle/deb/mind-work-ai-studio_*.deb
export HOME=/root export HOME=/root
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
source "$HOME/.cargo/env" source "$HOME/.cargo/env"