From: MatthieuCoder Date: Wed, 4 Jan 2023 13:14:48 +0000 (+0400) Subject: add caches to github actions X-Git-Tag: v0.1~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=eb2dc6ac0272d6a95fa22c1f014100a625c31fed;p=matthieu%2Fnova.git add caches to github actions --- 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') }}