diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 14a61531..b8d43cf8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,6 +41,18 @@ jobs: apt-get install -q -y python3 automake libtool autotools-dev git make cmake pkg-config gcc wget xz-utils run: | + # Download and install jansson + git clone https://github.com/akheron/jansson.git + cd jansson; + autoreconf -fi; + ./configure; + make; + make install; + cd .. + + # Configure and Run libocispec + export JANSSON_CFLAGS=-I/usr/local/include; + export JANSSON_LIBS=/usr/local/lib/libjansson.so find $(pwd) -name '.git' -exec bash -c 'git config --global --add safe.directory ${0%/.git}' {} \; ./autogen.sh --enable-embedded-yajl --enable-embedded-jansson ./configure --enable-embedded-yajl --enable-embedded-jansson CFLAGS='-Wall -Wextra -Werror' diff --git a/Makefile.am b/Makefile.am index bfafca2c..52bea956 100644 --- a/Makefile.am +++ b/Makefile.am @@ -273,6 +273,8 @@ sync: (cd image-spec; git pull https://github.com/opencontainers/image-spec) (cd runtime-spec; git pull https://github.com/opencontainers/runtime-spec) (cd yajl; git pull https://github.com/containers/yajl main) + (cd jansson; git pull https://github.com/akheron/jansson master) + generate: src/runtime_spec_stamp src/image_spec_stamp src/image_manifest_stamp src/basic-test_stamp