added intial woodpecker config

This commit is contained in:
Czarek Nakamoto
2024-02-15 00:31:19 +01:00
parent 81ccfac99e
commit c7c553a7f3
2 changed files with 121 additions and 0 deletions
+81
View File
@@ -0,0 +1,81 @@
matrix:
include:
- HOST_TRIPLET: x86_64-linux-gnu
BUILD_TRIPLET: x86_64-linux-gnu
short_arch: x86_64
full_arch: x86_64
monero_arch: x86-64
monero_buildtag: linux-x86_64
monero_build64: 'ON'
monero_cmake_arm_mode: 'OFF'
platform:
- linux/amd64
steps:
- name: clone repositories
image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
commands:
- . ./.env
# Monero
- (git clone $${MONERO_GIT_SOURCE} --depth=1 --branch $${MONERO_TAG} monero && cd monero && git submodule init && git submodule update)
# Boost
- curl -L -o boost_$${BOOST_VERSION}.tar.bz2 https://archives.boost.io/release/$${BOOST_VERSION_DOT}/source/boost_$${BOOST_VERSION}.tar.bz2
- echo "$${BOOST_HASH} boost_$${BOOST_VERSION}.tar.bz2" | sha256sum -c
- tar -xf boost_$${BOOST_VERSION}.tar.bz2
- rm -f boost_$${BOOST_VERSION}.tar.bz2
# libiconv
- curl -O http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$${ICONV_VERSION}.tar.gz
- echo "$${ICONV_HASH} libiconv-$${ICONV_VERSION}.tar.gz" | sha256sum -c
- tar -xzf libiconv-$${ICONV_VERSION}.tar.gz
- rm -f libiconv-$${ICONV_VERSION}.tar.gz
# zlib
- curl -O https://zlib.net/zlib-$${ZLIB_VERSION}.tar.gz
- echo "$${ZLIB_HASH} zlib-$${ZLIB_VERSION}.tar.gz" | sha256sum -c
- tar -xzf zlib-$${ZLIB_VERSION}.tar.gz
- rm zlib-$${ZLIB_VERSION}.tar.gz
- mv zlib-$${ZLIB_VERSION} zlib
# openssl
- curl -O https://www.openssl.org/source/openssl-$${OPENSSL_VERSION}.tar.gz
- echo "$${OPENSSL_HASH} openssl-$${OPENSSL_VERSION}.tar.gz" | sha256sum -c
- tar -xzf openssl-$${OPENSSL_VERSION}.tar.gz
- rm openssl-$${OPENSSL_VERSION}.tar.gz
# libzmq
- git clone https://github.com/zeromq/libzmq.git -b $${ZMQ_VERSION} --depth=1
- (cd libzmq && test `git rev-parse HEAD` = $${ZMQ_HASH}) || exit 1
# libsodium
- git clone https://github.com/jedisct1/libsodium.git -b $${SODIUM_VERSION} --depth=1
- (cd libsodium && test `git rev-parse HEAD` = $${SODIUM_HASH}) || exit 1
# libexpat
- git clone https://github.com/libexpat/libexpat.git -b $${LIBEXPAT_VERSION} --depth=1
- (cd libexpat && test `git rev-parse HEAD` = $${LIBEXPAT_HASH}) || exit 1
# unbound
- git clone https://github.com/NLnetLabs/unbound.git -b $${LIBUNBOUND_VERSION} --depth=1
- cd unbound
- test `git rev-parse HEAD` = $${LIBUNBOUND_HASH} || exit 1
# polyseed
- git clone https://github.com/tevador/polyseed.git
- (cd polyseed && git reset --hard $${POLYSEED_HASH}) || exit 1
# utf8proc
- git clone https://github.com/JuliaStrings/utf8proc -b v2.8.0 --depth=1
- (cd utf8proc && git reset --hard $${UTF8PROC_HASH})
- name: Build boost (1/2)
image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
commands:
- . ./.env && export PREFIX="$${PWD}/pfx"
- cd boost_$${BOOST_VERSION}
- ./bootstrap.sh --prefix="$${PREFIX}"
- name: Build iconv (for boost)
image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
commands:
- . ./.env && export PREFIX="$${PWD}/pfx"
- cd libiconv-${ICONV_VERSION}
- ./configure --build=${BUILD_TRIPLET} --host=${HOST_TRIPLET} --prefix=$${PREFIX} --disable-rpath
- make -j${NPROC}
- make install
- name: Build boost (2/2)
image: git.mrcyjanek.net/mrcyjanek/debian:bookworm
commands:
- . ./.env && export PREFIX="$${PWD}/pfx"
- cd boost_${BOOST_VERSION}
- echo -n -e '\n#undef PTHREAD_STACK_MIN\n#define PTHREAD_STACK_MIN 16384\n' | cat - ./boost/thread/pthread/thread_data.hpp > temp && mv temp ./boost/thread/pthread/thread_data.hpp
- ./b2 cxxflags=-fPIC cflags=-fPIC --build-type=minimal link=static runtime-link=static --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --with-locale --build-dir=linux --stagedir=linux toolset=gcc threading=multi threadapi=pthread -sICONV_PATH=${PREFIX} install -j${NPROC} &>/tmp/boost_log.txt || cat /tmp/boost_log.txt