Skip to content

Commit

Permalink
Test setup with system cityhash in Linux workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Apr 22, 2023
1 parent b99d338 commit 45edfc1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,23 @@ jobs:
C_COMPILER: gcc
CXX_COMPILER: g++
DEPENDENCIES_INSTALL: libabsl-dev liblz4-dev
HOMEBREW_DEPENDENCIES_INSTALL: cityhash
DEPENDENCIES_CMAKE_OPTIONS: >-
-D WITH_SYSTEM_LZ4=ON
-D WITH_SYSTEM_ABSEIL=ON
-D WITH_SYSTEM_CITYHASH=ON
-D CMAKE_LIBRARY_PATH="$(brew --prefix cityhash)/lib"
-D CMAKE_CXX_FLAGS="-I$(brew --prefix cityhash)/include"
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2

- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
if: matrix.HOMEBREW_DEPENDENCIES_INSTALL

- name: Install dependencies
run: |
sudo apt-get update && \
Expand All @@ -76,6 +84,11 @@ jobs:
${{matrix.COMPILER_INSTALL}} \
${{matrix.DEPENDENCIES_INSTALL}}
- name: Install dependencies from Homebrew
if: matrix.HOMEBREW_DEPENDENCIES_INSTALL
run: |
brew install ${{matrix.HOMEBREW_DEPENDENCIES_INSTALL}}
- name: Install dependencies - Docker
run: |
sudo apt remove -y docker docker-engine docker.io containerd runc
Expand All @@ -95,7 +108,7 @@ jobs:
${{matrix.SSL_CMAKE_OPTION}} \
${{matrix.DEPENDENCIES_CMAKE_OPTIONS}} \
-S ${{github.workspace}} \
-B ${{github.workspace}}/build
-B ${{github.workspace}}/build
- name: Build project
run: |
Expand Down

0 comments on commit 45edfc1

Please sign in to comment.