Skip to content

Commit

Permalink
Try explicitly compiling and installing
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Apr 7, 2023
1 parent 5972379 commit 1c65fb4
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ jobs:
tests:
name: ${{ matrix.python-version }}
runs-on: ubuntu-20.04
services:
kyototycoon:
image: coleifer/kyototycoon
ports:
- 1978:1978
timeout-minutes: 15
strategy:
fail-fast: false
Expand All @@ -23,5 +18,29 @@ jobs:
run: |
pip install cython msgpack-python
python setup.py build_ext -i
- name: kt
run: |
sudo apt-get install libluajit-5.1-dev liblzma-dev
curl -SLO http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz
tar xzvf kyotocabinet-1.2.76.tar.gz
cd kyotocabinet-1.2.76
./configure --enable-lzma
sed -i -e "s/CXXFLAGS =/CXXFLAGS = -std=c++98/" ./Makefile
sed -i -e "s/CFLAGS =/CFLAGS = -std=c++98/" ./Makefile
make -j
sudo make install
cd ../
curl -SLO http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz
tar xzvf kyototycoon-0.9.56.tar.gz
cd kyototycoon-0.9.56
./configure --with-kc=/usr/local --enable-lua
sed -i -e "s/CXXFLAGS =/CXXFLAGS = -std=c++98/" ./Makefile
sed -i -e "s/CFLAGS =/CFLAGS = -std=c++98/" ./Makefile
sed -i -e "s,include/lua5.1,include/luajit-2.1,g" ./Makefile && \
sed -i "s/-llua$/-lluajit-5.1/g" ./Makefile && \
sed -i "s/-llua5.1/-lluajit-5.1/g" ./Makefile && \
sed -i -e "/^#include <kttimeddb.h>$/a #include <unistd.h>" ./ktdbext.h
make -j
sudo make install
- name: runtests
run: python tests.py -v

0 comments on commit 1c65fb4

Please sign in to comment.