Skip to content

Commit

Permalink
Add flag to prevent using cached installed Valkey
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <[email protected]>
  • Loading branch information
GumpacG committed Sep 17, 2024
1 parent 8c92532 commit 276e3d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/install-valkey/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ inputs:
- aarch64-apple-darwin
- aarch64-unknown-linux-musl
- x86_64-unknown-linux-musl
use-cache:
description: "Uses installed Valkey from cache"
required: false
default: true
type: boolean

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -62,7 +67,7 @@ runs:
echo 'export PATH=/usr/local/bin:$PATH' >>~/.bash_profile
- name: Verify Valkey installation and symlinks
if: ${{ !contains(inputs.engine-version, '-rc') }}
if: ${{ !inputs.use-cache || !contains(inputs.engine-version, '-rc') }}
shell: bash
run: |
# In Valkey releases, the engine is built with symlinks from valkey-server and valkey-cli
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ jobs:
with:
engine-version: "8.0.0"
target: ${{ matrix.host.TARGET }}
cache: false

- name: Start Valkey server
run: |
Expand Down

0 comments on commit 276e3d3

Please sign in to comment.