Skip to content

Commit

Permalink
Merge pull request #291 from pmienk/version3
Browse files Browse the repository at this point in the history
Regenerate artifacts.
  • Loading branch information
evoskuil committed May 26, 2022
2 parents 34e96ce + 1a42f51 commit 6dcb1be
Show file tree
Hide file tree
Showing 40 changed files with 407 additions and 284 deletions.
82 changes: 0 additions & 82 deletions .appveyor.yml

This file was deleted.

185 changes: 185 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
###############################################################################
# Copyright (c) 2014-2020 libbitcoin-database developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################

name: Continuous Integration Build

on: [ pull_request, push, workflow_dispatch ]

jobs:
verify-installsh:

strategy:
fail-fast: false

matrix:
include:
- os: ubuntu-latest
cxx: "clang++"
link: "dynamic"
assert: "debug"
coverage: "nocov"
boost: "--build-boost"
icu: ""
cc: "clang"
flags: "-Os -fPIE"
packager: "apt"
packages: "clang"

- os: ubuntu-latest
cxx: "clang++"
link: "static"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
cc: "clang"
flags: "-Os -fPIE"
packager: "apt"
packages: "clang"

- os: ubuntu-latest
cxx: "g++"
link: "dynamic"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: ""
cc: "gcc"
flags: "-Os -fPIE"
packager: "apt"
packages: "gcc"

- os: ubuntu-latest
cxx: "g++"
link: "static"
assert: "ndebug"
coverage: "cov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
cc: "gcc"
flags: "-Og -g --coverage -fPIE"
packager: "apt"
packages: "gcc lcov"

- os: macos-latest
cxx: "clang++"
link: "dynamic"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
cc: "clang"
flags: "-Os -fPIE"
packager: "brew"
packages: ""

- os: macos-latest
cxx: "clang++"
link: "static"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
cc: "clang"
flags: "-Os -fPIE"
packager: "brew"
packages: ""

runs-on: ${{ matrix.os }}

env:
CC: '${{ matrix.cc }}'
CXX: '${{ matrix.cxx }}'
CFLAGS: '${{ matrix.flags }}'
CXXFLAGS: '${{ matrix.flags }}'
CI_REPOSITORY: '${{ github.repository }}'

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Prepare toolchain [apt]
if: ${{ matrix.packager == 'apt' }}
run: |
sudo apt-get update
sudo apt-get install git build-essential autoconf automake libtool pkg-config ${{ matrix.packages }}
- name: Prepare toolchain [brew]
if: ${{ matrix.packager == 'brew' }}
run: |
brew install autoconf automake libtool pkg-config ${{ matrix.packages }}
- name: Denormalize parameterization
run: |
if [[ ${{ matrix.assert }} == 'ndebug' ]]; then
echo "ASSERT_NDEBUG=--enable-ndebug" >> $GITHUB_ENV
else
echo "ASSERT_NDEBUG=--disable-ndebug" >> $GITHUB_ENV
fi
if [[ ${{ matrix.link }} == 'dynamic' ]]; then
echo "LINKAGE=--disable-static" >> $GITHUB_ENV
else
echo "LINKAGE=--disable-shared" >> $GITHUB_ENV
fi
if [[ ${{ matrix.link }} == 'dynamic' ]]; then
echo "LDFLAGS=-Wl,-rpath,${{ github.workspace }}/prefixenv/lib" >> $GITHUB_ENV
fi
- name: Execute install.sh
run: >
./install.sh
--build-dir=${{ github.workspace }}/build
--prefix=${{ github.workspace }}/prefixenv
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ matrix.boost }}
${{ matrix.icu }}
- name: Coveralls Calculation
if: ${{ matrix.coverage == 'cov' }}
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info "/usr/*" "${{ github.workspace }}/prefixenv/*" "${{ github.workspace }}/build/*" "${{ github.workspace }}/examples/*" "${{ github.workspace }}/test/*" --output-file coverage.info
lcov --list coverage.info
- name: Coveralls.io Upload
if: ${{ matrix.coverage == 'cov' }}
uses: coverallsapp/github-action@master
with:
path-to-lcov: "./coverage.info"
github-token: ${{ secrets.github_token }}

- name: Failure display compiler version
if: ${{ failure() }}
run: |
gcc -v
clang -v
- name: Failure display env
if: ${{ failure() }}
run: |
env
- name: Failure list libdir
if: ${{ failure() }}
run: |
ls -la ${{ github.workspace }}/prefixenv/lib
- name: Failure display boost bootstrap.log [--build-boost]
if: ${{ failure() && (matrix.boost == '--build-boost') }}
run: |
cat ${{ github.workspace }}/build/build-*/bootstrap.log
- name: Failure display otool output
if: ${{ failure() && (matrix.os == 'macos-latest') }}
run: |
otool -L ${{ github.workspace }}/test/.libs/libbitcoin-database-test
- name: Failure display DYLD_PRINT_LIBRARIES
if: ${{ failure() && (matrix.os == 'macos-latest') }}
run: |
DYLD_PRINT_LIBRARIES=1 ${{ github.workspace }}/test/.libs/libbitcoin-database-test
102 changes: 0 additions & 102 deletions .travis.yml

This file was deleted.

8 changes: 5 additions & 3 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ REM ###########################################################################
@echo off
SETLOCAL ENABLEEXTENSIONS
SET "parent=%~dp0"
SET "path_base=%~1"
SET "nuget_pkg_path=%~1\.nuget\packages"
SET "relative_path_base=%~1"
call cd /d "%relative_path_base%"
SET "path_base=%cd%"
SET "nuget_pkg_path=%path_base%\.nuget\packages"
SET "msbuild_args=/verbosity:minimal /p:Platform=%~2 /p:Configuration=%~3"
SET "proj_version=%~4"
SET "msbuild_exe=msbuild"
Expand Down Expand Up @@ -95,7 +97,7 @@ exit /b 0

:depends
call :pending "nuget restoring dependencies for %~1..."
call nuget restore "%path_base%\%~1\builds\msvc\%proj_version%\%~1.sln" -Outputdir "%nuget_pkg_path%"
call nuget restore "%path_base%\%~1\builds\msvc\%proj_version%\%~1.sln" -OutputDirectory "%nuget_pkg_path%"
IF %ERRORLEVEL% NEQ 0 (
call :failure "nuget restore failed."
exit /b 1
Expand Down
Loading

0 comments on commit 6dcb1be

Please sign in to comment.