Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

pl-strflt/rust-sccache-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

This project is now deprecated.

Please use Mozilla-Actions/sccache-action instead.

Rust Shared Compilation Cache Action

The action sets up sccache for Rust modules.

Inputs

Name Description Default
version The version of sccache to use v0.3.1
key An additional key for the cache empty
shared-key An additional key that is stable over multiple jobs empty
skip-save If set to true, it will use the cache in read-only mode false
autoclean If set to true, it will use cargo-cache to clean the cache before saving false

Env

Name Description Example
CACHE_SKIP_SAVE If set to true, it will use the cache in read-only mode true
SCCACHE_DIR The path where the sccache should be set up on the runner ${{ github.workspace }}/.cache/sccache
SCCACHE_CACHE_SIZE The sccache max size limit 2G

Outputs

Name Description
cache-hit A boolean value to indicate an exact match was found for the key.
cache-primary-key Cache primary key passed in the input to use in subsequent steps of the workflow.
cache-matched-key Key of the cache that was restored, it could either be the primary key on cache-hit or a partial/complete match of one of the restore keys.

See actions/cache and mozilla/sccache for a full list of configuration options through environmental variables.