File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,23 @@ jobs:
58
58
C_COMPILER : gcc
59
59
CXX_COMPILER : g++
60
60
DEPENDENCIES_INSTALL : libabsl-dev liblz4-dev
61
+ HOMEBREW_DEPENDENCIES_INSTALL : cityhash
61
62
DEPENDENCIES_CMAKE_OPTIONS : >-
62
63
-D WITH_SYSTEM_LZ4=ON
63
64
-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"
64
68
65
69
runs-on : ${{matrix.os}}
66
70
67
71
steps :
68
72
- uses : actions/checkout@v2
69
73
74
+ - name : Set up Homebrew
75
+ uses : Homebrew/actions/setup-homebrew@master
76
+ if : matrix.HOMEBREW_DEPENDENCIES_INSTALL
77
+
70
78
- name : Install dependencies
71
79
run : |
72
80
sudo apt-get update && \
76
84
${{matrix.COMPILER_INSTALL}} \
77
85
${{matrix.DEPENDENCIES_INSTALL}}
78
86
87
+ - name : Install dependencies from Homebrew
88
+ if : matrix.HOMEBREW_DEPENDENCIES_INSTALL
89
+ run : |
90
+ brew install ${{matrix.HOMEBREW_DEPENDENCIES_INSTALL}}
91
+
79
92
- name : Install dependencies - Docker
80
93
run : |
81
94
sudo apt remove -y docker docker-engine docker.io containerd runc
95
108
${{matrix.SSL_CMAKE_OPTION}} \
96
109
${{matrix.DEPENDENCIES_CMAKE_OPTIONS}} \
97
110
-S ${{github.workspace}} \
98
- -B ${{github.workspace}}/build
111
+ -B ${{github.workspace}}/build
99
112
100
113
- name : Build project
101
114
run : |
You can’t perform that action at this time.
0 commit comments