Skip to content

Commit

Permalink
Add caching and artefacts to workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrownlie committed Jan 26, 2024
1 parent 90f092b commit 3b623a6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ubuntu-latest-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: target/debug/simple_render_window

0 comments on commit 3b623a6

Please sign in to comment.