mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
ci: fix cache (#165)
This commit is contained in:
@@ -60,15 +60,7 @@ runs:
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
libssl-dev
|
libssl-dev
|
||||||
|
|
||||||
- name: Cache protoc binary
|
|
||||||
id: cache-protoc
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/.local/bin/protoc
|
|
||||||
key: protoc-31.1-${{ runner.os }}-${{ runner.arch }}
|
|
||||||
|
|
||||||
- name: Install protoc
|
- name: Install protoc
|
||||||
if: steps.cache-protoc.outputs.cache-hit != 'true'
|
|
||||||
uses: arduino/setup-protoc@v3
|
uses: arduino/setup-protoc@v3
|
||||||
with:
|
with:
|
||||||
version: "31.1"
|
version: "31.1"
|
||||||
@@ -104,7 +96,3 @@ runs:
|
|||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
shared-key: ${{ inputs.cache-shared-key }}
|
shared-key: ${{ inputs.cache-shared-key }}
|
||||||
save-if: ${{ inputs.cache-save-if }}
|
save-if: ${{ inputs.cache-save-if }}
|
||||||
# Cache workspace dependencies
|
|
||||||
workspaces: |
|
|
||||||
. -> target
|
|
||||||
cli/rustfs-gui -> cli/rustfs-gui/target
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
cancel_others: true
|
cancel_others: true
|
||||||
paths_ignore: '["*.md", "docs/**", "deploy/**"]'
|
paths_ignore: '["*.md", "docs/**", "deploy/**"]'
|
||||||
# Never skip release events and tag pushes
|
# Never skip release events and tag pushes
|
||||||
do_not_skip: '["release", "push"]'
|
do_not_skip: '["workflow_dispatch", "schedule", "merge_group", "release", "push"]'
|
||||||
|
|
||||||
test-and-lint:
|
test-and-lint:
|
||||||
name: Test and Lint
|
name: Test and Lint
|
||||||
|
|||||||
Reference in New Issue
Block a user