mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 16:49:06 +00:00
Cache the Rust build artifacts (#111)
This commit is contained in:
parent
ea083fdec2
commit
09c1b77414
10
.github/workflows/build-and-release.yml
vendored
10
.github/workflows/build-and-release.yml
vendored
@ -574,8 +574,18 @@ jobs:
|
|||||||
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cd runtime
|
cd runtime
|
||||||
|
|
||||||
|
# Try to restore the Rust cache from previous build:
|
||||||
|
mkdir -p /rust-cache/target
|
||||||
|
rm -fr target
|
||||||
|
cp -Rp /rust-cache/target target
|
||||||
|
|
||||||
cargo tauri build --target aarch64-unknown-linux-gnu --bundles deb
|
cargo tauri build --target aarch64-unknown-linux-gnu --bundles deb
|
||||||
|
|
||||||
|
# Save the built libraries for the next job:
|
||||||
|
rm -fr /rust-cache/target
|
||||||
|
mv target /rust-cache
|
||||||
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
if: ${{ env.SKIP != 'true' }}
|
if: ${{ env.SKIP != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user