1
0
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:
Martin Geisler
2023-01-23 17:08:29 +01:00
committed by GitHub
parent 543cad59e4
commit 1f37933b8b
4 changed files with 40 additions and 27 deletions

View 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