mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 11:48:27 +00:00
Cache the Rust build artifacts (#111)
This commit is contained in:
1 parent
ea083fdec2
commit
09c1b77414
1 file changed
+10
@@ -574,7 +574,17 @@ 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' }}
|
||||||
|
|||||||
Reference in new issue
Block a user