Skip to content

Commit a0e581a

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

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)