From b698bd97470b8e16bc0dba98d592cdceddca799a Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Tue, 7 Nov 2023 19:07:32 +0100 Subject: [PATCH] use the cache and see if we can build apple as well --- buildall.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildall.sh b/buildall.sh index 555ddf1..2840b75 100644 --- a/buildall.sh +++ b/buildall.sh @@ -1,6 +1,6 @@ #!/bin/sh -export FS_DIR_CACHE_ROOT="$HOME/.cache/fs-dir-cache" # directory to hold all cache (sub)directories +export FS_DIR_CACHE_ROOT="/data/.cache/fs-dir-cache" # directory to hold all cache (sub)directories export FS_DIR_CACHE_LOCK_ID="pid-$$-rnd-$RANDOM" # acquire lock based on the current pid and something random (just in case pid gets reused) export FS_DIR_CACHE_KEY_NAME="build-project-x" # the base name of our key export FS_DIR_CACHE_LOCK_TIMEOUT_SECS="3600" # unlock after timeout (1h) in case our job fails misereably @@ -27,8 +27,9 @@ for i in $(seq 0 $(expr $(jq '. | length' < apps.json) - 1)); do fs-dir-cache gc unused --seconds "$((7 * 24 * 60 * 60))" # delete caches not used in more than a week cache_dir=$(fs-dir-cache lock --key-file Cargo.toml) trap "fs-dir-cache unlock --dir ${cache_dir}" EXIT - cargo tauri build - cargo tauri build --target x86_64-pc-windows-msvc + cargo tauri build --target-dir="${cache_dir}/target" + cargo tauri build --target x86_64-pc-windows-msvc --target-dir="${cache_dir}/target" + cargo tauri build --target x86_64-apple-darwin --target-dir="${cache_dir}/target" cd .. cd .. done \ No newline at end of file