From 3b623a68203d7d0de406af1c064084bcfeebc7b7 Mon Sep 17 00:00:00 2001 From: cabrownlie <13515086+cabrownlie@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:36:50 +0000 Subject: [PATCH] Add caching and artefacts to workflow. --- .github/workflows/rust.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..fcd9f3b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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/upload-artifact@v4.3.0 + with: + path: target/debug/simple_render_window