diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2022-11-29 11:40:23 +0100 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2022-11-29 11:40:23 +0100 |
commit | dd64390cf271df683c9ebfdfbaf6afd74fe7fe96 (patch) | |
tree | c9a65fa13d013fbe574355178122150998bc6d3b | |
parent | 7187d9dae3c9050c5d5d80d08b8e9b3617ffbdd4 (diff) |
CI: Add caching
-rw-r--r-- | .github/workflows/deploy.yml | 3 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2ad1eae..3b9cb50 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,9 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 + # Cache files between builds + - uses: Swatinem/rust-cache@v1 + - name: Setup | Rust uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8abcc60..9675a62 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,8 @@ jobs: toolchain: ${{ matrix.rust }} override: true + - uses: Swatinem/rust-cache@v2 + - name: tests uses: actions-rs/cargo@v1 with: @@ -40,6 +42,8 @@ jobs: components: rustfmt, clippy override: true + - uses: Swatinem/rust-cache@v2 + - name: fmt run: cargo fmt --all -- --check |