summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-04 17:14:48 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-04 17:14:48 +0400
commiteb2dc6ac0272d6a95fa22c1f014100a625c31fed (patch)
treecfe8eb526e108221324b2aeb18818435dc2e8d17 /.github
parent8f09090698f91e70300726fe7bfd081a834a75d9 (diff)
add caches to github actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fd872e3..aaa42bc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,6 +24,15 @@ jobs:
components: clippy
- name: Build | Lint
run: cargo clippy
+ - uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: lint
build_macos:
name: 'Build for MacOS'
@@ -65,6 +74,15 @@ jobs:
with:
name: macos
path: artifacts/*
+ - uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
build_windows:
name: 'Build for Windows'
@@ -102,6 +120,15 @@ jobs:
with:
name: windows
path: artifacts/*
+ - uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
build_linux:
name: 'Build for Linux'
@@ -140,3 +167,12 @@ jobs:
with:
name: linux_glibc
path: artifacts/*
+ - uses: actions/cache@v3
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}