pub struct BuildCache {
pub enabled: bool,
pub max_size: ByteSize,
pub branches: Vec<String>,
pub directory: Option<PathBuf>,
pub actions_cache: bool,
}Expand description
[caches.build]: the build cache every runner shares (ADR 0052): Gradle’s, and the other tools’ the runner image
points at it. Every field has a default.
Fields§
§enabled: boolWhether runners get it. Default true.
max_size: ByteSizeAbove this size, the entries used least recently go when no job runs. Default 10G.
branches: Vec<String>The branches whose pushes, scheduled and manually started runs may write to it besides each repository’s default branch, which always may. Every other job only reads. Default empty.
directory: Option<PathBuf>Where its entries are kept; default $XDG_CACHE_HOME/runnerd/build-cache.
actions_cache: boolWhether it also serves GitHub Actions’ cache, for actions/cache, the setup-* actions’ caches and
BuildKit’s type=gha, in place of GitHub’s (ADR 0082). Default true.
Implementations§
Source§impl BuildCache
impl BuildCache
Sourcepub fn actions_cache_check(&self) -> Check
pub fn actions_cache_check(&self) -> Check
Doctor’s word on where jobs’ GitHub Actions cache is: for information, it fails nothing.
Trait Implementations§
Source§impl Clone for BuildCache
impl Clone for BuildCache
Source§impl Debug for BuildCache
impl Debug for BuildCache
Source§impl Default for BuildCache
impl Default for BuildCache
Source§fn default() -> BuildCache
fn default() -> BuildCache
Source§impl<'de> Deserialize<'de> for BuildCachewhere
BuildCache: Default,
impl<'de> Deserialize<'de> for BuildCachewhere
BuildCache: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for BuildCache
Source§impl PartialEq for BuildCache
impl PartialEq for BuildCache
impl StructuralPartialEq for BuildCache
Auto Trait Implementations§
impl Freeze for BuildCache
impl RefUnwindSafe for BuildCache
impl Send for BuildCache
impl Sync for BuildCache
impl Unpin for BuildCache
impl UnsafeUnpin for BuildCache
impl UnwindSafe for BuildCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.