differentiate debug/release in cache key (#5613)
This commit is contained in:
@@ -97,10 +97,10 @@ jobs:
|
|||||||
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f
|
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml') }}
|
key: ${{ runner.os }}-cargo-build-release-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-
|
${{ runner.os }}-cargo-build-release-${{ hashFiles('Cargo.lock') }}-
|
||||||
${{ runner.os }}-cargo-build-
|
${{ runner.os }}-cargo-build-release-
|
||||||
|
|
||||||
- name: Build CLI (Linux/macOS)
|
- name: Build CLI (Linux/macOS)
|
||||||
if: matrix.use-cross
|
if: matrix.use-cross
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ jobs:
|
|||||||
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3
|
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-intel-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-intel-cargo-build-release-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-intel-cargo-build-
|
${{ runner.os }}-intel-cargo-build-release-
|
||||||
|
|
||||||
|
|
||||||
- name: Build goose-server for Intel macOS (x86_64)
|
- name: Build goose-server for Intel macOS (x86_64)
|
||||||
|
|||||||
@@ -95,9 +95,9 @@ jobs:
|
|||||||
${{ env.CARGO_HOME }}/registry/index/
|
${{ env.CARGO_HOME }}/registry/index/
|
||||||
${{ env.CARGO_HOME }}/registry/cache/
|
${{ env.CARGO_HOME }}/registry/cache/
|
||||||
${{ env.CARGO_HOME }}/git/db/
|
${{ env.CARGO_HOME }}/git/db/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ runner.os }}-cargo-release-
|
||||||
|
|
||||||
- name: Build goosed binary
|
- name: Build goosed binary
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -92,10 +92,10 @@ jobs:
|
|||||||
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f
|
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml') }}
|
key: ${{ runner.os }}-cargo-build-release-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-build-${{ hashFiles('Cargo.lock') }}-
|
${{ runner.os }}-cargo-build-release-${{ hashFiles('Cargo.lock') }}-
|
||||||
${{ runner.os }}-cargo-build-
|
${{ runner.os }}-cargo-build-release-
|
||||||
|
|
||||||
# 4) Build Rust for Windows using Docker (cross-compilation with enhanced caching)
|
# 4) Build Rust for Windows using Docker (cross-compilation with enhanced caching)
|
||||||
- name: Build Windows executable using Docker cross-compilation with enhanced caching
|
- name: Build Windows executable using Docker cross-compilation with enhanced caching
|
||||||
|
|||||||
@@ -128,9 +128,9 @@ jobs:
|
|||||||
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3
|
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3
|
||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-build-release-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-build-
|
${{ runner.os }}-cargo-build-release-
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
- name: Build goosed
|
- name: Build goosed
|
||||||
@@ -296,4 +296,4 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Kill the app to clean up
|
# Kill the app to clean up
|
||||||
pkill -f "Goose.app/Contents/MacOS/Goose"
|
pkill -f "Goose.app/Contents/MacOS/Goose"
|
||||||
|
|||||||
@@ -73,9 +73,9 @@ jobs:
|
|||||||
${{ env.CARGO_HOME }}/registry/cache/
|
${{ env.CARGO_HOME }}/registry/cache/
|
||||||
${{ env.CARGO_HOME }}/git/db/
|
${{ env.CARGO_HOME }}/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ runner.os }}-cargo-debug-
|
||||||
|
|
||||||
- name: Build and Test
|
- name: Build and Test
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -73,9 +73,9 @@ jobs:
|
|||||||
${{ env.CARGO_HOME }}/registry/cache/
|
${{ env.CARGO_HOME }}/registry/cache/
|
||||||
${{ env.CARGO_HOME }}/git/db/
|
${{ env.CARGO_HOME }}/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ runner.os }}-cargo-release-
|
||||||
|
|
||||||
- name: Build Release Binary for Smoke Tests
|
- name: Build Release Binary for Smoke Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user