Skip to content

Commit a3d4856

Browse files
authored
Merge pull request #442 from pmienk/version3
Regenerate artifacts.
2 parents f07caad + 708caa9 commit a3d4856

File tree

4 files changed

+63
-30
lines changed

4 files changed

+63
-30
lines changed

.github/workflows/ci.yml

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

114114
steps:
115115
- name: Checkout repository
116-
uses: actions/checkout@v2
116+
uses: actions/checkout@v3
117+
118+
- name: Prepare toolchain [generic]
119+
run: |
120+
git config --global init.defaultBranch master
117121
118122
- name: Prepare toolchain [apt]
119123
if: ${{ matrix.packager == 'apt' }}
@@ -145,6 +149,7 @@ jobs:
145149
- name: Execute install.sh
146150
run: >
147151
./install.sh
152+
--enable-isystem
148153
--build-dir=${{ github.workspace }}/build
149154
--prefix=${{ github.workspace }}/prefixenv
150155
${{ env.LINKAGE }}
@@ -162,7 +167,7 @@ jobs:
162167
163168
- name: Coveralls.io Upload
164169
if: ${{ matrix.coverage == 'cov' }}
165-
uses: coverallsapp/github-action@master
170+
uses: pmienk/coveralls-github-action@master
166171
with:
167172
path-to-lcov: "./coverage.info"
168173
github-token: ${{ secrets.github_token }}
@@ -318,7 +323,11 @@ jobs:
318323

319324
steps:
320325
- name: Checkout repository
321-
uses: actions/checkout@v2
326+
uses: actions/checkout@v3
327+
328+
- name: Prepare toolchain [generic]
329+
run: |
330+
git config --global init.defaultBranch master
322331
323332
- name: Prepare toolchain [apt]
324333
if: ${{ matrix.packager == 'apt' }}
@@ -370,7 +379,7 @@ jobs:
370379
371380
- name: Coveralls.io Upload
372381
if: ${{ matrix.coverage == 'cov' }}
373-
uses: coverallsapp/github-action@master
382+
uses: pmienk/coveralls-github-action@master
374383
with:
375384
path-to-lcov: "./coverage.info"
376385
github-token: ${{ secrets.github_token }}
@@ -458,7 +467,7 @@ jobs:
458467
uses: microsoft/[email protected]
459468

460469
- name: Checkout repository
461-
uses: actions/checkout@v2
470+
uses: actions/checkout@v3
462471

463472
- name: Initialize SDK
464473
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-node"
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-node"
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)