Skip to content

Commit

Permalink
add redis container
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Dec 1, 2023
1 parent 47758b3 commit f9a37ac
Showing 1 changed file with 45 additions and 40 deletions.
85 changes: 45 additions & 40 deletions .github/workflows/server-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,55 @@ on:
jobs:
build-test-redis:
runs-on: ubuntu-22.04
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/ci
with:
cmake_target: launchdarkly-cpp-server-redis-source
# TODO: Fix installation of redis++/hiredis headers to enable releases.
simulate_release: false
build-test-redis-mac:
runs-on: macos-12
steps:
- run: |
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> "$GITHUB_ENV"
# For debugging
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)"
- uses: actions/checkout@v3
- uses: ./.github/actions/ci
env:
OPENSSL_ROOT_DIR: ${{ env.OPENSSL_ROOT_DIR }}
with:
cmake_target: launchdarkly-cpp-server-redis-source
platform_version: 12
build-test-redis-windows:
runs-on: windows-2022
steps:
- name: Upgrade OpenSSL
shell: bash
run: |
choco upgrade openssl --no-progress
- name: Determine OpenSSL Installation Directory
shell: bash
run: |
if [ -d "C:\Program Files\OpenSSL-Win64" ]; then
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> "$GITHUB_ENV"
else
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> "$GITHUB_ENV"
fi
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- uses: ./.github/actions/ci
env:
OPENSSL_ROOT_DIR: ${{ env.OPENSSL_ROOT_DIR }}
BOOST_LIBRARY_DIR: 'C:\local\boost_1_81_0\lib64-msvc-14.3'
BOOST_LIBRARYDIR: 'C:\local\boost_1_81_0\lib64-msvc-14.3'
with:
cmake_target: launchdarkly-cpp-server-redis-source
platform_version: 2022
toolset: msvc
# build-test-redis-mac:
# runs-on: macos-12
# steps:
# - run: |
# echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> "$GITHUB_ENV"
# # For debugging
# echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)"
# - uses: actions/checkout@v3
# - uses: ./.github/actions/ci
# env:
# OPENSSL_ROOT_DIR: ${{ env.OPENSSL_ROOT_DIR }}
# with:
# cmake_target: launchdarkly-cpp-server-redis-source
# platform_version: 12
# build-test-redis-windows:
# runs-on: windows-2022
# steps:
# - name: Upgrade OpenSSL
# shell: bash
# run: |
# choco upgrade openssl --no-progress
# - name: Determine OpenSSL Installation Directory
# shell: bash
# run: |
# if [ -d "C:\Program Files\OpenSSL-Win64" ]; then
# echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> "$GITHUB_ENV"
# else
# echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> "$GITHUB_ENV"
# fi
# - uses: actions/checkout@v3
# - uses: ilammy/msvc-dev-cmd@v1
# - uses: ./.github/actions/ci
# env:
# OPENSSL_ROOT_DIR: ${{ env.OPENSSL_ROOT_DIR }}
# BOOST_LIBRARY_DIR: 'C:\local\boost_1_81_0\lib64-msvc-14.3'
# BOOST_LIBRARYDIR: 'C:\local\boost_1_81_0\lib64-msvc-14.3'
# with:
# cmake_target: launchdarkly-cpp-server-redis-source
# platform_version: 2022
# toolset: msvc

0 comments on commit f9a37ac

Please sign in to comment.