Skip to content

Commit 2e62bd6

Browse files
authored
Merge pull request #556 from pmienk/version3
Regenerate artifacts.
2 parents 324ca2a + 6269aaa commit 2e62bd6

4 files changed

Lines changed: 63 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ jobs:
119119

120120
steps:
121121
- name: Checkout repository
122-
uses: actions/checkout@v2
122+
uses: actions/checkout@v3
123+
124+
- name: Prepare toolchain [generic]
125+
run: |
126+
git config --global init.defaultBranch master
123127
124128
- name: Prepare toolchain [apt]
125129
if: ${{ matrix.packager == 'apt' }}
@@ -151,6 +155,7 @@ jobs:
151155
- name: Execute install.sh
152156
run: >
153157
./install.sh
158+
--enable-isystem
154159
--build-dir=${{ github.workspace }}/build
155160
--prefix=${{ github.workspace }}/prefixenv
156161
${{ env.LINKAGE }}
@@ -169,7 +174,7 @@ jobs:
169174
170175
- name: Coveralls.io Upload
171176
if: ${{ matrix.coverage == 'cov' }}
172-
uses: coverallsapp/github-action@master
177+
uses: pmienk/coveralls-github-action@master
173178
with:
174179
path-to-lcov: "./coverage.info"
175180
github-token: ${{ secrets.github_token }}
@@ -331,7 +336,11 @@ jobs:
331336

332337
steps:
333338
- name: Checkout repository
334-
uses: actions/checkout@v2
339+
uses: actions/checkout@v3
340+
341+
- name: Prepare toolchain [generic]
342+
run: |
343+
git config --global init.defaultBranch master
335344
336345
- name: Prepare toolchain [apt]
337346
if: ${{ matrix.packager == 'apt' }}
@@ -384,7 +393,7 @@ jobs:
384393
385394
- name: Coveralls.io Upload
386395
if: ${{ matrix.coverage == 'cov' }}
387-
uses: coverallsapp/github-action@master
396+
uses: pmienk/coveralls-github-action@master
388397
with:
389398
path-to-lcov: "./coverage.info"
390399
github-token: ${{ secrets.github_token }}
@@ -472,7 +481,7 @@ jobs:
472481
uses: microsoft/setup-msbuild@v1.1
473482

474483
- name: Checkout repository
475-
uses: actions/checkout@v2
484+
uses: actions/checkout@v3
476485

477486
- name: Initialize SDK
478487
shell: powershell

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ AM_PROG_AR
3737

3838
# Initialize libtool.
3939
LT_PREREQ(2.4.2)
40+
41+
# Enable shared libraries if available, and static if they don't conflict.
4042
LT_INIT
43+
AC_SUBST([LIBTOOL_DEPS])
4144

4245
# Determine C++ compiler to use.
4346
AC_PROG_CXX
4447

45-
# Enable shared libraries if available, and static if they don't conflict.
46-
AC_PROG_LIBTOOL
47-
4848
# Enable sed for substitution.
4949
AC_PROG_SED
5050

install-cmake.sh

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# --prefix=<absolute-path> Library install location (defaults to /usr/local).
2525
# --disable-shared Disables shared library builds.
2626
# --disable-static Disables static library builds.
27+
# --verbose Display verbose output (defaults to quiet on called tooling).
2728
# --help Display usage, overriding script execution.
2829
#
2930
# Verified on Ubuntu 14.04, requires gcc-4.8 or newer.
@@ -47,17 +48,13 @@ SEQUENTIAL=1
4748
if [[ $GIT_CLONE_PARAMS ]]; then
4849
display_message "Using shell-defined GIT_CLONE_PARAMS value."
4950
else
50-
GIT_CLONE_PARAMS=""
51+
GIT_CLONE_PARAMS="--depth 1 --single-branch"
5152
fi
5253

5354
# The default build directory.
5455
#------------------------------------------------------------------------------
5556
BUILD_DIR="build-libbitcoin-server"
5657

57-
# Git clone parameters.
58-
#------------------------------------------------------------------------------
59-
GIT_CLONE_PARAMS="--depth 1 --single-branch"
60-
6158
PRESUMED_CI_PROJECT_PATH=$(pwd)
6259

6360
# ICU archive.
@@ -162,12 +159,17 @@ make_jobs()
162159
local JOBS=$1
163160
shift 1
164161

162+
VERBOSITY=""
163+
if [[ DISPLAY_VERBOSE ]]; then
164+
VERBOSITY="VERBOSE=1"
165+
fi
166+
165167
SEQUENTIAL=1
166168
# Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]).
167169
if [[ $JOBS > $SEQUENTIAL ]]; then
168-
make -j"$JOBS" "$@"
170+
make -j"$JOBS" "$@" $VERBOSITY
169171
else
170-
make "$@"
172+
make "$@" $VERBOSITY
171173
fi
172174
}
173175

@@ -252,6 +254,7 @@ parse_command_line_options()
252254
case $OPTION in
253255
# Standard script options.
254256
(--help) DISPLAY_HELP="yes";;
257+
(--verbose) DISPLAY_VERBOSE="yes";;
255258

256259
# Standard build options.
257260
(--prefix=*) PREFIX="${OPTION#*=}";;
@@ -325,7 +328,7 @@ set_os_specific_compiler_settings()
325328

326329
link_to_standard_library()
327330
{
328-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
331+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
329332
export LDLIBS="-l$STDLIB $LDLIBS"
330333
export CXXFLAGS="-stdlib=lib$STDLIB $CXXFLAGS"
331334
fi
@@ -518,9 +521,18 @@ extract_from_tarball()
518521
push_directory "$TARGET_DIR"
519522

520523
# Extract the source locally.
521-
wget --output-document "$ARCHIVE" "$URL"
522-
tar --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
524+
WGET="wget --quiet"
525+
TAR="tar"
526+
527+
if [[ $DISPLAY_VERBOSE ]]; then
528+
WGET="wget --verbose"
529+
TAR="tar --verbose"
530+
fi
531+
532+
$WGET --output-document "$ARCHIVE" "$URL"
533+
$TAR --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
523534

535+
display_message "Completed download and extraction successfully."
524536
pop_directory
525537
}
526538

@@ -760,7 +772,7 @@ initialize_boost_configuration()
760772
BOOST_TOOLSET="toolset=$CC"
761773
fi
762774

763-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
775+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
764776
STDLIB_FLAG="-stdlib=lib$STDLIB"
765777
BOOST_CXXFLAGS="cxxflags=$STDLIB_FLAG"
766778
BOOST_LINKFLAGS="linkflags=$STDLIB_FLAG"

install.sh

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# --prefix=<absolute-path> Library install location (defaults to /usr/local).
2525
# --disable-shared Disables shared library builds.
2626
# --disable-static Disables static library builds.
27+
# --verbose Display verbose output (defaults to quiet on called tooling).
2728
# --help Display usage, overriding script execution.
2829
#
2930
# Verified on Ubuntu 14.04, requires gcc-4.8 or newer.
@@ -47,17 +48,13 @@ SEQUENTIAL=1
4748
if [[ $GIT_CLONE_PARAMS ]]; then
4849
display_message "Using shell-defined GIT_CLONE_PARAMS value."
4950
else
50-
GIT_CLONE_PARAMS=""
51+
GIT_CLONE_PARAMS="--depth 1 --single-branch"
5152
fi
5253

5354
# The default build directory.
5455
#------------------------------------------------------------------------------
5556
BUILD_DIR="build-libbitcoin-server"
5657

57-
# Git clone parameters.
58-
#------------------------------------------------------------------------------
59-
GIT_CLONE_PARAMS="--depth 1 --single-branch"
60-
6158
PRESUMED_CI_PROJECT_PATH=$(pwd)
6259

6360
# ICU archive.
@@ -162,12 +159,17 @@ make_jobs()
162159
local JOBS=$1
163160
shift 1
164161

162+
VERBOSITY=""
163+
if [[ DISPLAY_VERBOSE ]]; then
164+
VERBOSITY="VERBOSE=1"
165+
fi
166+
165167
SEQUENTIAL=1
166168
# Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]).
167169
if [[ $JOBS > $SEQUENTIAL ]]; then
168-
make -j"$JOBS" "$@"
170+
make -j"$JOBS" "$@" $VERBOSITY
169171
else
170-
make "$@"
172+
make "$@" $VERBOSITY
171173
fi
172174
}
173175

@@ -252,6 +254,7 @@ parse_command_line_options()
252254
case $OPTION in
253255
# Standard script options.
254256
(--help) DISPLAY_HELP="yes";;
257+
(--verbose) DISPLAY_VERBOSE="yes";;
255258

256259
# Standard build options.
257260
(--prefix=*) PREFIX="${OPTION#*=}";;
@@ -320,7 +323,7 @@ set_os_specific_compiler_settings()
320323

321324
link_to_standard_library()
322325
{
323-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
326+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
324327
export LDLIBS="-l$STDLIB $LDLIBS"
325328
export CXXFLAGS="-stdlib=lib$STDLIB $CXXFLAGS"
326329
fi
@@ -455,9 +458,18 @@ extract_from_tarball()
455458
push_directory "$TARGET_DIR"
456459

457460
# Extract the source locally.
458-
wget --output-document "$ARCHIVE" "$URL"
459-
tar --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
461+
WGET="wget --quiet"
462+
TAR="tar"
463+
464+
if [[ $DISPLAY_VERBOSE ]]; then
465+
WGET="wget --verbose"
466+
TAR="tar --verbose"
467+
fi
468+
469+
$WGET --output-document "$ARCHIVE" "$URL"
470+
$TAR --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
460471

472+
display_message "Completed download and extraction successfully."
461473
pop_directory
462474
}
463475

@@ -634,7 +646,7 @@ initialize_boost_configuration()
634646
BOOST_TOOLSET="toolset=$CC"
635647
fi
636648

637-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
649+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
638650
STDLIB_FLAG="-stdlib=lib$STDLIB"
639651
BOOST_CXXFLAGS="cxxflags=$STDLIB_FLAG"
640652
BOOST_LINKFLAGS="linkflags=$STDLIB_FLAG"

0 commit comments

Comments
 (0)