From fb8f93561759661070de07205683b486346ee1d8 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 5 Apr 2023 13:05:15 +0200 Subject: [PATCH] Fix Cache and Bump Version --- .github/workflows/master-build.yml | 22 ++++++++++++---------- .github/workflows/release-build.yml | 11 ++++++----- schemsearch-cli/Cargo.toml | 2 +- schemsearch-files/Cargo.toml | 2 +- schemsearch-lib/Cargo.toml | 2 +- 5 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml index 32ef5d5..d1f11d4 100644 --- a/.github/workflows/master-build.yml +++ b/.github/workflows/master-build.yml @@ -19,13 +19,14 @@ jobs: - name: Cache Cargo modules id: cache-cargo uses: actions/cache@v3 - env: - cache-name: cache-cargo-target-debug + continue-on-error: false with: - path: target - key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-cargo- - name: Build run: make debug - name: Run tests @@ -38,13 +39,14 @@ jobs: - name: Cache Cargo modules id: cache-cargo uses: actions/cache@v3 - env: - cache-name: cache-cargo-target-release + continue-on-error: false with: - path: target - key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-cargo- - name: Build run: make - name: Upload a Build Artifact diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 301b087..7a9fcb0 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -22,13 +22,14 @@ jobs: - name: Cache Cargo modules id: cache-cargo uses: actions/cache@v3 - env: - cache-name: cache-cargo-target-release + continue-on-error: false with: - path: target - key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/registry + ~/.cargo/git + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-cargo- - name: Build run: make - name: Create Tarball diff --git a/schemsearch-cli/Cargo.toml b/schemsearch-cli/Cargo.toml index b9e98f0..85a7786 100644 --- a/schemsearch-cli/Cargo.toml +++ b/schemsearch-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schemsearch-cli" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "AGPL-3.0-or-later" diff --git a/schemsearch-files/Cargo.toml b/schemsearch-files/Cargo.toml index 395f9fe..368fc4f 100644 --- a/schemsearch-files/Cargo.toml +++ b/schemsearch-files/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schemsearch-files" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/schemsearch-lib/Cargo.toml b/schemsearch-lib/Cargo.toml index 1c340ef..559e62c 100644 --- a/schemsearch-lib/Cargo.toml +++ b/schemsearch-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schemsearch-lib" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "AGPL-3.0-or-later"