Skip to content

Commit 3b623a6

Browse files
committed
Add caching and artefacts to workflow.
1 parent 90f092b commit 3b623a6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,21 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
- uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.cargo/bin/
23+
~/.cargo/registry/index/
24+
~/.cargo/registry/cache/
25+
~/.cargo/git/db/
26+
target/
27+
key: ubuntu-latest-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }}
1928
- name: Build
2029
run: cargo build --verbose
2130
- name: Run tests
2231
run: cargo test --verbose
32+
- name: Upload a Build Artifact
33+
uses: actions/[email protected]
34+
with:
35+
path: target/debug/simple_render_window

0 commit comments

Comments
 (0)