Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Jun 27, 2024
1 parent fd4935c commit de551d8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 55 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,18 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --recursive
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
os: "amazon-linux"
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a symbolic Link for redis6 binaries
run: |
ln -s /usr/bin/redis6-server /usr/bin/redis-server
ln -s /usr/bin/redis6-cli /usr/bin/redis-cli
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Install Go
run: |
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/install-valkey/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ runs:
version1: ${{ inputs.engine-version }}
version2: ${{ env.VALKEY_MIN_VERSION }}

- name: Display comparison result
shell: bash
run: |
echo "Comparison result: ${{ steps.is_valkey_release.outputs.result }}"
- name: Verify Valkey installation and symlinks
shell: bash
run: |
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --recursive
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
Expand All @@ -177,15 +171,16 @@ jobs:
version: "26.1"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a symbolic Link for redis6 binaries
run: |
ln -s /usr/bin/redis6-server /usr/bin/redis-server
ln -s /usr/bin/redis6-cli /usr/bin/redis-cli
- name: Install Java
run: |
yum install -y java-${{ matrix.java }}
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Build rust part
working-directory: java
run: cargo build --release
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ jobs:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "aarch64-apple-darwin"

- name: Install NodeJS
run: |
brew update
Expand All @@ -153,6 +147,12 @@ jobs:
target: "aarch64-apple-darwin"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "aarch64-apple-darwin"

- name: Test compatibility
run: npm test -- -t "set and get flow works"
working-directory: ./node
Expand All @@ -176,12 +176,6 @@ jobs:
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --recursive
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"
- name: Install NodeJS
run: |
Expand All @@ -194,6 +188,12 @@ jobs:
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Test compatibility
run: npm test -- -t "set and get flow works"
working-directory: ./node
Expand Down
28 changes: 11 additions & 17 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ jobs:
submodules: recursive
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "aarch64-apple-darwin"

- name: Build Python wrapper
uses: ./.github/workflows/build-python-wrapper
with:
os: "macos"
target: "aarch64-apple-darwin"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "aarch64-apple-darwin"

- name: Test compatibility with pytest
working-directory: ./python
Expand Down Expand Up @@ -194,12 +194,6 @@ jobs:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --recursive
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Install python
run: |
yum install -y python3
Expand All @@ -211,11 +205,11 @@ jobs:
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a symbolic Link for redis6 binaries
working-directory: ./python
run: |
ln -s /usr/bin/redis6-server /usr/bin/redis-server
ln -s /usr/bin/redis6-cli /usr/bin/redis-cli
- name: Install Valkey
uses: ./.github/workflows/install-valkey
with:
engine-version: "7.2.5"
target: "x86_64-unknown-linux-gnu"

- name: Test compatibility with pytest
working-directory: ./python
Expand Down

0 comments on commit de551d8

Please sign in to comment.