From 3ffd73d68a8138607fd4b7d8dab6a853fda481f4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 28 Dec 2019 07:37:58 +0100 Subject: [PATCH] CI: Compile restclient-cpp as a workaround. --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.drone.yml b/.drone.yml index 4991577..3133636 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,13 @@ steps: source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_bionic_amd64.deb destination: mastodon-cpp_bionic.deb +# Workaround until the debian packages are fixed. +- name: download restclient-cpp source + image: plugins/download + settings: + source: https://github.com/mrtazz/restclient-cpp/archive/0.5.1.tar.gz + destination: restclient-cpp.tar.gz + - name: GCC 8 on Debian buster image: debian:buster-slim pull: always @@ -44,6 +51,12 @@ steps: - apt-get install -qq build-essential cmake asciidoc - apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev - apt-get -qq install ./mastodon-cpp_buster.deb + - tar -xf restclient-cpp.tar.gz + - cd restclient-cpp-* + - cmake -DCMAKE_INSTALL_PREFIX=/usr . + - cmake --build . + - make install + - cd .. - rm -rf build && mkdir -p build && cd build - cmake .. - make VERBOSE=1 @@ -71,6 +84,12 @@ steps: - apt-get install -qq build-essential cmake asciidoc - apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev - apt-get -qq install ./mastodon-cpp_bionic.deb + - tar -xf restclient-cpp.tar.gz + - cd restclient-cpp-* + - cmake -DCMAKE_INSTALL_PREFIX=/usr . + - cmake --build . + - make install + - cd -- - rm -rf build && mkdir -p build && cd build - cmake .. - make VERBOSE=1