Test Rust caching #1124
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
name: Test Rust caching | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
schedule: | |
- cron: "30 */6 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
rust: | |
runs-on: | |
- namespace-profile-e2e-small | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust cache | |
uses: ./ # Uses an action in the root directory | |
with: | |
cache: rust | |
- uses: actions/checkout@v4 | |
with: | |
repository: namespace-integration-demos/rust-cache | |
path: demo | |
- run: cargo build --locked --release --no-default-features --all | |
working-directory: ./demo | |
- run: cargo test --locked --release --all | |
working-directory: ./demo | |
- name: Print cache metadata file | |
run: | | |
ls -al /cache/.ns | |
cat /cache/.ns/cache-metadata.json |