Skip to content

Commit

Permalink
Use jq from apt
Browse files Browse the repository at this point in the history
  • Loading branch information
Florents-Tselai committed Feb 29, 2024
1 parent 52d838e commit 5c1db7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,12 @@ jobs:
autoconf \
libtool \
wget \
sqlite3 libsqlite3-dev
- name: Build jq from source
run: |
wget "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-1.7.1.tar.gz" &&\
tar xzf jq-1.7.1.tar.gz && \
cd jq-1.7.1 && \
./configure --with-oniguruma=builtin --prefix=/usr/local && \
sudo make -j install
sqlite3 libsqlite3-dev libjq-dev
- name: Build extension
run: |
make all
- name: Run tests
run: |
make test
make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SRC=litejq.c
OUT=litejq
PKG_CONFIG ?= pkg-config

ifeq (no,$(shell $(PKG_CONFIG) libjq || echo no))
ifeq (no,$(shell $(PKG_CONFIG) jq || echo no))
$(warning "libjq not registed with pkg-config, build might fail. If it does, try setting JQ_PREFIX manually and run with `JQ_PREFIX=/path/to/dir make all`")
LIBJQ_LIBS=-I$(JQ_PREFIX)/include -L$(JQ_PREFIX)/lib -ljq
else
Expand Down

0 comments on commit 5c1db7e

Please sign in to comment.