Skip to content

Commit 45edfc1

Browse files
committed
Test setup with system cityhash in Linux workflow
1 parent b99d338 commit 45edfc1

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/linux.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,23 @@ jobs:
5858
C_COMPILER: gcc
5959
CXX_COMPILER: g++
6060
DEPENDENCIES_INSTALL: libabsl-dev liblz4-dev
61+
HOMEBREW_DEPENDENCIES_INSTALL: cityhash
6162
DEPENDENCIES_CMAKE_OPTIONS: >-
6263
-D WITH_SYSTEM_LZ4=ON
6364
-D WITH_SYSTEM_ABSEIL=ON
65+
-D WITH_SYSTEM_CITYHASH=ON
66+
-D CMAKE_LIBRARY_PATH="$(brew --prefix cityhash)/lib"
67+
-D CMAKE_CXX_FLAGS="-I$(brew --prefix cityhash)/include"
6468
6569
runs-on: ${{matrix.os}}
6670

6771
steps:
6872
- uses: actions/checkout@v2
6973

74+
- name: Set up Homebrew
75+
uses: Homebrew/actions/setup-homebrew@master
76+
if: matrix.HOMEBREW_DEPENDENCIES_INSTALL
77+
7078
- name: Install dependencies
7179
run: |
7280
sudo apt-get update && \
@@ -76,6 +84,11 @@ jobs:
7684
${{matrix.COMPILER_INSTALL}} \
7785
${{matrix.DEPENDENCIES_INSTALL}}
7886
87+
- name: Install dependencies from Homebrew
88+
if: matrix.HOMEBREW_DEPENDENCIES_INSTALL
89+
run: |
90+
brew install ${{matrix.HOMEBREW_DEPENDENCIES_INSTALL}}
91+
7992
- name: Install dependencies - Docker
8093
run: |
8194
sudo apt remove -y docker docker-engine docker.io containerd runc
@@ -95,7 +108,7 @@ jobs:
95108
${{matrix.SSL_CMAKE_OPTION}} \
96109
${{matrix.DEPENDENCIES_CMAKE_OPTIONS}} \
97110
-S ${{github.workspace}} \
98-
-B ${{github.workspace}}/build
111+
-B ${{github.workspace}}/build
99112
100113
- name: Build project
101114
run: |

0 commit comments

Comments
 (0)