Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Feb 21, 2025
1 parent 750cfb5 commit ba5d263
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/install-engine/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
key: valkey-${{ inputs.engine-version }}-${{ inputs.target }}

- name: Prepare Valkey sources
if: ${{ steps.cache-valkey.outputs.cache-hit != 'true' }}
if: ${{ steps.cache-valkey.outputs.cache-hit != 'true' && !contains(inputs.target, 'windows') }}
shell: bash
run: |
echo "Cloning and checking out Valkey ${{ inputs.engine-version }}"
Expand All @@ -54,8 +54,9 @@ runs:
uses: cygwin/cygwin-install-action@v5
with:
packages: make git gcc-core

- name: Build and install engine
if: ${{ !contains(inputs.target, 'windows') }}
shell: bash
run: |
cd ${{ runner.temp }}/valkey
Expand All @@ -69,6 +70,21 @@ runs:
make install
fi
echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile
- name: Build Valkey
if: ${{ steps.cache-valkey.outputs.cache-hit != 'true' && contains(inputs.target, 'windows') }}
run: |
echo "Cloning and checking out Valkey ${{ inputs.engine-version }}"
cd ${{ runner.temp }}
if (Test-Path -Path $Folder) {
echo "Removing existing valkey directory..."
Remove-Item -Path valkey -Recurse -Force -Confirm:$false
}
git clone https://github.com/valkey-io/valkey.git
cd valkey
git checkout ${{ inputs.engine-version }}
make BUILD_TLS=yes
make install
# TODO: This seems redundant to me. Is it necessary? Do we check that the Python we install is the correct version?
# Why here and not elsewhere? All Git git repos were created equal
Expand Down

0 comments on commit ba5d263

Please sign in to comment.