Skip to content

Commit 33d3965

Browse files
Merge pull request #1 from terminusdb-labs/rrooij-patch-1
Add CI and fix SWIPL v9.0.2 build
2 parents 5ba594f + 05a5837 commit 33d3965

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/c-cpp.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Add SWIPL repo
15+
run: sudo apt-add-repository "ppa:swi-prolog/stable" -y
16+
- name: Install dependencies
17+
run: sudo apt update && sudo apt install swi-prolog-nox libjwt-dev -y
18+
- name: make
19+
run: make

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ DOCKER_SWIPL=8.1.12
55
DOCKER_JANSSON=2.12
66
DOCKER_LIBJWT=1.12.0
77

8-
PACKSODIR=$(shell swipl -q -g "use_module(library(prolog_pack)), prolog_pack:def_environment('PACKSODIR', X), writeln(X)." -t halt)
98
JWTLDFLAGS=$(shell pkg-config --libs libjwt)
109
JWTCFLAGS=$(shell pkg-config --cflags libjwt)
10+
PACKSODIR=$(shell swipl -q -g "use_module(library(build/tools)), build_tools:def_environment('PACKSODIR', X, []), writeln(X)." -t halt)
1111
SSLLDFLAGS=-lssl -lcrypto
1212
SSLCFLAGS=
1313
CFLAGS=-D_GNU_SOURCE $(JWTCFLAGS) $(SSLCFLAGS) -pedantic -Wall -Wno-unused-result -fpic -c

0 commit comments

Comments
 (0)