Skip to content

Commit d5fa87c

Browse files
committed
ci: add basic darwin workflow
1 parent a7593ff commit d5fa87c

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/CI-darwin.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Darwin
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Install dependencies
13+
run: brew install automake bzip2 cmake git gpatch gnutls ossp-uuid grep libtool
14+
15+
- name: Build
16+
run: |
17+
export PATH="/opt/homebrew/opt/grep/libexec/gnubin:$PATH"
18+
make
19+
20+
- name: Show version
21+
run: ./src/proxysql --version

deps/Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ libssl/openssl/libssl.a:
7474
# cd libssl/openssl && patch crypto/asn1/a_time.c < ../a_time.c-multiplication-overflow.patch
7575
cd libssl/openssl && ./config no-ssl3 no-tests
7676
cd libssl/openssl && CC=${CC} CXX=${CXX} ${MAKE}
77-
cd libssl/openssl && ln -fsT . lib # curl wants this path
77+
cd libssl/openssl && ln -fs . lib # curl wants this path
7878

7979
libssl: libssl/openssl/libssl.a
8080

@@ -92,7 +92,9 @@ ifeq ($(UNAME_S),FreeBSD)
9292
sed -i -e 's/\/bin\/bash/\/usr\/local\/bin\/bash/' libhttpserver/libhttpserver/bootstrap
9393
endif
9494
ifeq ($(SYS_KERN),Darwin)
95-
sed -i -e 's/glibtoolize/libtoolize/' libhttpserver/libhttpserver/bootstrap
95+
ifeq (, $(shell which glibtoolize))
96+
sed -i -e 's/glibtoolize/libtoolize/' libhttpserver/libhttpserver/bootstrap
97+
endif
9698
endif
9799
cd libhttpserver/libhttpserver && ./bootstrap && mkdir build
98100
cd libhttpserver/libhttpserver/build && LDFLAGS=-L$(shell pwd)/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/ CPPFLAGS=-I$(shell pwd)/libmicrohttpd/libmicrohttpd/src/include ../configure --disable-doxygen-doc --disable-doxygen-dot --disable-doxygen-man --disable-doxygen-html --enable-fastopen=false --disable-examples
@@ -159,7 +161,7 @@ lz4: lz4/lz4/lib/liblz4.a
159161

160162
clickhouse-cpp/clickhouse-cpp/clickhouse/libclickhouse-cpp-lib-static.a:
161163
cd clickhouse-cpp && rm -rf clickhouse-cpp-*/ || true
162-
cd clickhouse-cpp && ln -fsT clickhouse-cpp-2.3.0 clickhouse-cpp
164+
cd clickhouse-cpp && ln -fs clickhouse-cpp-2.3.0 clickhouse-cpp
163165
cd clickhouse-cpp && tar -zxf v2.3.0.tar.gz && sync
164166
cd clickhouse-cpp/clickhouse-cpp && patch clickhouse/base/wire_format.h < ../wire_format.patch
165167
cd clickhouse-cpp/clickhouse-cpp && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .

0 commit comments

Comments
 (0)