You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-23 17:26:44 +02:00
Extract common build steps to composite actions (#242)
* Extract common build steps to composite actions This allows us to repeat ourselves less across the different jobs. I also tested using a “reusable workflow” to factor out the common steps. However, this starts a separate job without a shared filesystem, which in turn requires us to upload/download artifacts when we want to use them in several jobs. The artifacts are downloaded one-by-one and this adds delays and extra steps to all jobs. * Move Rust cache setup to its own build step This made it easy to consistently setup the caching of our nested projects via the “workspacs” config key.
This commit is contained in:
13
.github/workflows/setup-rust-cache/action.yml
vendored
Normal file
13
.github/workflows/setup-rust-cache/action.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Setup Rust cache
|
||||
|
||||
description: Configure the rust-cache workflow.
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Setup Rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
. -> target
|
||||
i18n-helpers -> target
|
Reference in New Issue
Block a user