diff --git a/azure-pipelines/pre-release.yml b/azure-pipelines/pre-release.yml index 87290ae2..198e1bc8 100644 --- a/azure-pipelines/pre-release.yml +++ b/azure-pipelines/pre-release.yml @@ -1,8 +1,15 @@ -# Run on a schedule +# Run on both a schedule and weekly trigger: branches: include: - main +schedules: + - cron: "0 0 * * 0" + displayName: Weekly build + branches: + include: + - main + always: true pr: none resources: diff --git a/crates/pet-python-utils/src/cache.rs b/crates/pet-python-utils/src/cache.rs index 00b64282..e0575a86 100644 --- a/crates/pet-python-utils/src/cache.rs +++ b/crates/pet-python-utils/src/cache.rs @@ -91,7 +91,7 @@ impl CacheImpl { Entry::Occupied(lock) => lock.get().clone(), Entry::Vacant(lock) => { let cache = Box::new(CacheEntryImpl::create(cache_directory.clone(), executable)) - as Box<(dyn CacheEntry + 'static)>; + as Box; lock.insert(Arc::new(Mutex::new(cache))).clone() } }