install dependencies
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 37c6dea..78f520a 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -10,8 +10,16 @@
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: install
+ - name checkout
+ uses: actions/checkout@v3
+ - name checkout datasketches-cpp
+ uses: actions/checkout@v3
+ with:
+ repository: apache/datasketches-cpp
+ path: datasketches-cpp
+ - name: download Boost
+ run: make boost
+ - name: install PostgreSQL
run: sudo apt-get -y install postgresql-14 postgresql-client-14 postgresql-server-dev-14 libpq-dev
- name: make
run: make
diff --git a/Makefile b/Makefile
index 6fc574c..42ac0c8 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,9 @@
# assume a dir or link named "boost" in the current dir
BOOST = boost
+BOOST_VER = 1.82.0
+BOOST_FILE = boost_$(subst .,_,$(BOOST_VER))
+BOOST_URL = https://boostorg.jfrog.io/artifactory/main/release/$(BOOST_VER)/source/$(BOOST_FILE).zip
PG_CPPFLAGS = -fPIC -I/usr/local/include -I$(BOOST) -I$(CORE)/common/include \
-I$(CORE)/kll/include \
@@ -80,3 +83,8 @@
cat $^ > $@
install: $(SQL_INSTALL)
+
+boost:
+ wget $(BOOST_URL)
+ unzip $(BOOST_FILE).zip
+ ln -s $(BOOST_FILE) boost