Merge pull request #3279 from stmcginnis/cleanup-deps #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow caches crate dependencies and build artifacts for tools (except 'test-tools' since we don't use them in build workflows). | |
# The cache is only usable by workflows started from pull requests against the develop branch. | |
name: CacheDepsAndTools | |
on: | |
push: | |
branches: [develop] | |
paths: | |
- '.github/**' | |
- 'sources/Cargo.lock' | |
- 'tools/buildsys/**' | |
- 'tools/pubsys*/**' | |
- '!tools/pubsys/policies/**' | |
- '!tools/pubsys/**.example' | |
- '!tools/pubsys/**.template' | |
- 'tools/Cargo.lock' | |
jobs: | |
cache: | |
if: github.repository == 'bottlerocket-os/bottlerocket' | |
runs-on: | |
group: bottlerocket | |
labels: bottlerocket_ubuntu-latest_16-core | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Preflight step to set up the runner | |
uses: ./.github/actions/setup-node | |
with: | |
perform-cache-cleanup: true | |
- run: cargo make publish-setup-tools | |
- run: cargo make publish-tools | |
- run: cargo make build-tools | |
# This cleans the cargo cache in ~/.cargo | |
- run: cargo-cache |