diff --git a/.github/workflows/actions/setup-env/action.yml b/.github/workflows/actions/setup-env/action.yml index fc016e22..274a4b6f 100644 --- a/.github/workflows/actions/setup-env/action.yml +++ b/.github/workflows/actions/setup-env/action.yml @@ -25,21 +25,15 @@ runs: - name: Show sccache stats shell: bash run: sccache --show-stats - - - name: Cache cargo + target + sccache - uses: Swatinem/rust-cache@v2 + + - uses: actions/cache@v4 with: - cache-targets: true - cache-all-crates: true - shared-key: ${{ runner.os }}-${{inputs.cache-key}}-${{ hashFiles('operator/rust-toolchain.toml') }}-${{ hashFiles('operator/Cargo.lock') }} - workspaces: | - operator -> target - cache-on-failure: true - cache-bin: true - cache-directories: | - **/sccache - **/.cargo/registry - **/.cargo/git + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/task-build-operator.yml b/.github/workflows/task-build-operator.yml index 3c0ae9cc..38ee42d5 100644 --- a/.github/workflows/task-build-operator.yml +++ b/.github/workflows/task-build-operator.yml @@ -1,6 +1,6 @@ # Build Operator: CI for building the operator binary -name: DataHave Operator Rust Tests +name: DataHaven Operator Binary Build on: workflow_dispatch: