2023-03-06 14:10:55 +00:00
|
|
|
# This workflow _produces_ caches which are used to speed up pull request builds.
|
|
|
|
# Originally from https://github.com/libp2p/rust-libp2p/blob/master/.github/workflows/cache-factory.yml
|
|
|
|
|
|
|
|
name: Cache Factory
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
make_cache:
|
|
|
|
name: 'Make Cache'
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: ./.github/actions/setup
|
|
|
|
with:
|
2023-03-19 16:47:10 +00:00
|
|
|
save-cache: 'true'
|
2023-03-06 14:10:55 +00:00
|
|
|
|
|
|
|
- name: Compile workspace with stable Rust
|
|
|
|
run: cargo test --workspace --all-features --no-run
|