Skip to content

Commit 097c864

Browse files
authored
Merge pull request #1272 from pmienk/version3
Regenerate artifacts.
2 parents 39eaa4d + 28e11cd commit 097c864

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
@@ -107,7 +107,11 @@ jobs:
107107

108108
steps:
109109
- name: Checkout repository
110-
uses: actions/checkout@v2
110+
uses: actions/checkout@v3
111+
112+
- name: Prepare toolchain [generic]
113+
run: |
114+
git config --global init.defaultBranch master
111115
112116
- name: Prepare toolchain [apt]
113117
if: ${{ matrix.packager == 'apt' }}
@@ -139,6 +143,7 @@ jobs:
139143
- name: Execute install.sh
140144
run: >
141145
./install.sh
146+
--enable-isystem
142147
--build-dir=${{ github.workspace }}/build
143148
--prefix=${{ github.workspace }}/prefixenv
144149
${{ env.LINKAGE }}
@@ -155,7 +160,7 @@ jobs:
155160
156161
- name: Coveralls.io Upload
157162
if: ${{ matrix.coverage == 'cov' }}
158-
uses: coverallsapp/github-action@master
163+
uses: pmienk/coveralls-github-action@master
159164
with:
160165
path-to-lcov: "./coverage.info"
161166
github-token: ${{ secrets.github_token }}
@@ -305,7 +310,11 @@ jobs:
305310

306311
steps:
307312
- name: Checkout repository
308-
uses: actions/checkout@v2
313+
uses: actions/checkout@v3
314+
315+
- name: Prepare toolchain [generic]
316+
run: |
317+
git config --global init.defaultBranch master
309318
310319
- name: Prepare toolchain [apt]
311320
if: ${{ matrix.packager == 'apt' }}
@@ -356,7 +365,7 @@ jobs:
356365
357366
- name: Coveralls.io Upload
358367
if: ${{ matrix.coverage == 'cov' }}
359-
uses: coverallsapp/github-action@master
368+
uses: pmienk/coveralls-github-action@master
360369
with:
361370
path-to-lcov: "./coverage.info"
362371
github-token: ${{ secrets.github_token }}
@@ -456,7 +465,7 @@ jobs:
456465
uses: microsoft/setup-msbuild@v1.1
457466

458467
- name: Checkout repository
459-
uses: actions/checkout@v2
468+
uses: actions/checkout@v3
460469

461470
- name: Initialize SDK
462471
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
@@ -23,6 +23,7 @@
2323
# --prefix=<absolute-path> Library install location (defaults to /usr/local).
2424
# --disable-shared Disables shared library builds.
2525
# --disable-static Disables static library builds.
26+
# --verbose Display verbose output (defaults to quiet on called tooling).
2627
# --help Display usage, overriding script execution.
2728
#
2829
# Verified on Ubuntu 14.04, requires gcc-4.8 or newer.
@@ -46,17 +47,13 @@ SEQUENTIAL=1
4647
if [[ $GIT_CLONE_PARAMS ]]; then
4748
display_message "Using shell-defined GIT_CLONE_PARAMS value."
4849
else
49-
GIT_CLONE_PARAMS=""
50+
GIT_CLONE_PARAMS="--depth 1 --single-branch"
5051
fi
5152

5253
# The default build directory.
5354
#------------------------------------------------------------------------------
5455
BUILD_DIR="build-libbitcoin-system"
5556

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

6259
# ICU archive.
@@ -156,12 +153,17 @@ make_jobs()
156153
local JOBS=$1
157154
shift 1
158155

156+
VERBOSITY=""
157+
if [[ DISPLAY_VERBOSE ]]; then
158+
VERBOSITY="VERBOSE=1"
159+
fi
160+
159161
SEQUENTIAL=1
160162
# Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]).
161163
if [[ $JOBS > $SEQUENTIAL ]]; then
162-
make -j"$JOBS" "$@"
164+
make -j"$JOBS" "$@" $VERBOSITY
163165
else
164-
make "$@"
166+
make "$@" $VERBOSITY
165167
fi
166168
}
167169

@@ -245,6 +247,7 @@ parse_command_line_options()
245247
case $OPTION in
246248
# Standard script options.
247249
(--help) DISPLAY_HELP="yes";;
250+
(--verbose) DISPLAY_VERBOSE="yes";;
248251

249252
# Standard build options.
250253
(--prefix=*) PREFIX="${OPTION#*=}";;
@@ -317,7 +320,7 @@ set_os_specific_compiler_settings()
317320

318321
link_to_standard_library()
319322
{
320-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
323+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
321324
export LDLIBS="-l$STDLIB $LDLIBS"
322325
export CXXFLAGS="-stdlib=lib$STDLIB $CXXFLAGS"
323326
fi
@@ -509,9 +512,18 @@ extract_from_tarball()
509512
push_directory "$TARGET_DIR"
510513

511514
# Extract the source locally.
512-
wget --output-document "$ARCHIVE" "$URL"
513-
tar --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
515+
WGET="wget --quiet"
516+
TAR="tar"
517+
518+
if [[ $DISPLAY_VERBOSE ]]; then
519+
WGET="wget --verbose"
520+
TAR="tar --verbose"
521+
fi
522+
523+
$WGET --output-document "$ARCHIVE" "$URL"
524+
$TAR --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
514525

526+
display_message "Completed download and extraction successfully."
515527
pop_directory
516528
}
517529

@@ -751,7 +763,7 @@ initialize_boost_configuration()
751763
BOOST_TOOLSET="toolset=$CC"
752764
fi
753765

754-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
766+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
755767
STDLIB_FLAG="-stdlib=lib$STDLIB"
756768
BOOST_CXXFLAGS="cxxflags=$STDLIB_FLAG"
757769
BOOST_LINKFLAGS="linkflags=$STDLIB_FLAG"

install.sh

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

5253
# The default build directory.
5354
#------------------------------------------------------------------------------
5455
BUILD_DIR="build-libbitcoin-system"
5556

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

6259
# ICU archive.
@@ -156,12 +153,17 @@ make_jobs()
156153
local JOBS=$1
157154
shift 1
158155

156+
VERBOSITY=""
157+
if [[ DISPLAY_VERBOSE ]]; then
158+
VERBOSITY="VERBOSE=1"
159+
fi
160+
159161
SEQUENTIAL=1
160162
# Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]).
161163
if [[ $JOBS > $SEQUENTIAL ]]; then
162-
make -j"$JOBS" "$@"
164+
make -j"$JOBS" "$@" $VERBOSITY
163165
else
164-
make "$@"
166+
make "$@" $VERBOSITY
165167
fi
166168
}
167169

@@ -245,6 +247,7 @@ parse_command_line_options()
245247
case $OPTION in
246248
# Standard script options.
247249
(--help) DISPLAY_HELP="yes";;
250+
(--verbose) DISPLAY_VERBOSE="yes";;
248251

249252
# Standard build options.
250253
(--prefix=*) PREFIX="${OPTION#*=}";;
@@ -312,7 +315,7 @@ set_os_specific_compiler_settings()
312315

313316
link_to_standard_library()
314317
{
315-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
318+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
316319
export LDLIBS="-l$STDLIB $LDLIBS"
317320
export CXXFLAGS="-stdlib=lib$STDLIB $CXXFLAGS"
318321
fi
@@ -446,9 +449,18 @@ extract_from_tarball()
446449
push_directory "$TARGET_DIR"
447450

448451
# Extract the source locally.
449-
wget --output-document "$ARCHIVE" "$URL"
450-
tar --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
452+
WGET="wget --quiet"
453+
TAR="tar"
454+
455+
if [[ $DISPLAY_VERBOSE ]]; then
456+
WGET="wget --verbose"
457+
TAR="tar --verbose"
458+
fi
459+
460+
$WGET --output-document "$ARCHIVE" "$URL"
461+
$TAR --extract --file "$ARCHIVE" "--$COMPRESSION" --strip-components=1
451462

463+
display_message "Completed download and extraction successfully."
452464
pop_directory
453465
}
454466

@@ -625,7 +637,7 @@ initialize_boost_configuration()
625637
BOOST_TOOLSET="toolset=$CC"
626638
fi
627639

628-
if [[ ($OS == Linux && $CC == "clang") || ($OS == OpenBSD) ]]; then
640+
if [[ ($OS == Linux && $CC == clang*) || ($OS == OpenBSD) ]]; then
629641
STDLIB_FLAG="-stdlib=lib$STDLIB"
630642
BOOST_CXXFLAGS="cxxflags=$STDLIB_FLAG"
631643
BOOST_LINKFLAGS="linkflags=$STDLIB_FLAG"

0 commit comments

Comments
 (0)