Skip to content

Commit

Permalink
Merge pull request #258 from pmienk/master
Browse files Browse the repository at this point in the history
Regenerate artifacts.
  • Loading branch information
pmienk authored Feb 10, 2024
2 parents 10955f2 + fbd6ab5 commit 77c0121
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 127 deletions.
110 changes: 64 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
cxx: "clang++-14"
cxx: "clang++-15"
link: "dynamic"
optimization: "size"
optimization: "debug"
assert: "debug"
coverage: "nocov"
boost: "--build-boost"
icu: ""
zmq: "--build-zmq"
cc: "clang-14"
flags: "-Os -fPIE"
cc: "clang-15"
flags: "-Og -fPIE"
options: "--enable-isystem"
packager: "apt"
packages: ""

- os: ubuntu-22.04
cxx: "clang++-14"
cxx: "clang++-15"
link: "static"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang-15"
flags: "-Os -fPIE"
options: "--enable-isystem"
packager: "apt"
Expand All @@ -65,43 +65,43 @@ jobs:
- os: ubuntu-22.04
cxx: "g++-11"
link: "static"
optimization: "debug"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "gcc-11"
flags: "-Og -fPIE"
flags: "-Os -fPIE"
options: "--enable-isystem"
packager: "apt"
packages: ""

- os: macos-latest
cxx: "clang++-14"
cxx: "clang++"
link: "dynamic"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang"
flags: "-Os -fPIE"
options: "--enable-isystem"
packager: "brew"
packages: "icu4c"

- os: macos-latest
cxx: "clang++-14"
cxx: "clang++"
link: "static"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang"
flags: "-Os -fvisibility=hidden -fPIE"
options: "--enable-isystem"
packager: "brew"
Expand All @@ -119,7 +119,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare toolchain [generic]
run: |
Expand All @@ -140,7 +140,7 @@ jobs:
shell: bash
run: |
WORKSPACE_SUBPATH="${GITHUB_WORKSPACE%libbitcoin-protocol}"
echo "LIBBITCOIN_SRC_PATH=$WORKSPACE_SUBPATH" >> $GITHUB_ENV
echo "LIBBITCOIN_SRC_PATH=${WORKSPACE_SUBPATH}" >> $GITHUB_ENV
if [[ ${{ matrix.assert }} == 'ndebug' ]]; then
echo "ASSERT_NDEBUG=--enable-ndebug" >> $GITHUB_ENV
else
Expand All @@ -152,9 +152,15 @@ jobs:
echo "LINKAGE=--disable-shared" >> $GITHUB_ENV
fi
if [[ ${{ matrix.link }} == 'dynamic' ]]; then
echo "LDFLAGS=-Wl,-rpath,$WORKSPACE_SUBPATH/prefix/lib" >> $GITHUB_ENV
echo "LDFLAGS=-Wl,-rpath,${WORKSPACE_SUBPATH}prefix/lib" >> $GITHUB_ENV
fi
- name: Display Compiler details
shell: bash
run: |
${CC} -v
${CXX} -v
- name: Display CPU details
if: ${{ (runner.os == 'Linux') }}
shell: bash
Expand All @@ -164,8 +170,8 @@ jobs:
- name: Execute install.sh
run: >
./install.sh
--build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }}
--prefix=$LIBBITCOIN_SRC_PATH/prefix
--build-dir=${{ env.LIBBITCOIN_SRC_PATH }} ${{ matrix.options }}
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ matrix.boost }}
Expand Down Expand Up @@ -242,30 +248,30 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
cxx: "clang++-14"
cxx: "clang++-15"
link: "dynamic"
optimization: "size"
optimization: "debug"
assert: "debug"
coverage: "nocov"
boost: "--build-boost"
icu: ""
zmq: "--build-zmq"
cc: "clang-14"
flags: "-Os -fPIE"
cc: "clang-15"
flags: "-Og -fPIE"
options: ""
packager: "apt"
packages: ""

- os: ubuntu-22.04
cxx: "clang++-14"
cxx: "clang++-15"
link: "static"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang-15"
flags: "-Os -fPIE"
options: ""
packager: "apt"
Expand All @@ -289,43 +295,43 @@ jobs:
- os: ubuntu-22.04
cxx: "g++-11"
link: "static"
optimization: "debug"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "gcc-11"
flags: "-Og -fPIE"
flags: "-Os -fPIE"
options: ""
packager: "apt"
packages: ""

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

- os: macos-latest
cxx: "clang++-14"
cxx: "clang++"
link: "static"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang"
flags: "-Os -fvisibility=hidden -fPIE"
options: ""
packager: "brew"
Expand All @@ -343,7 +349,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare toolchain [generic]
run: |
Expand All @@ -364,7 +370,7 @@ jobs:
shell: bash
run: |
WORKSPACE_SUBPATH="${GITHUB_WORKSPACE%libbitcoin-protocol}"
echo "LIBBITCOIN_SRC_PATH=$WORKSPACE_SUBPATH" >> $GITHUB_ENV
echo "LIBBITCOIN_SRC_PATH=${WORKSPACE_SUBPATH}" >> $GITHUB_ENV
if [[ ${{ matrix.packager }} == 'brew' ]]; then
echo "CMAKE_LIBRARY_PATH=/usr/local/lib" >> $GITHUB_ENV
fi
Expand All @@ -379,9 +385,15 @@ jobs:
echo "LINKAGE=--disable-shared" >> $GITHUB_ENV
fi
if [[ ${{ matrix.link }} == 'dynamic' ]]; then
echo "LDFLAGS=-Wl,-rpath,$WORKSPACE_SUBPATH/prefix/lib" >> $GITHUB_ENV
echo "LDFLAGS=-Wl,-rpath,${WORKSPACE_SUBPATH}prefix/lib" >> $GITHUB_ENV
fi
- name: Display Compiler details
shell: bash
run: |
${CC} -v
${CXX} -v
- name: Display CPU details
if: ${{ (runner.os == 'Linux') }}
shell: bash
Expand All @@ -391,8 +403,8 @@ jobs:
- name: Execute install-cmake.sh
run: >
./install-cmake.sh
--build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }}
--prefix=$LIBBITCOIN_SRC_PATH/prefix
--build-dir=${{ env.LIBBITCOIN_SRC_PATH }} ${{ matrix.options }}
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
${{ matrix.boost }}
Expand Down Expand Up @@ -480,31 +492,31 @@ jobs:
include:
- os: ubuntu-22.04
preset: "nix-gnu-debug-shared"
cxx: "clang++-14"
cxx: "clang++-15"
link: "dynamic"
optimization: "size"
optimization: "debug"
assert: "debug"
coverage: "nocov"
boost: "--build-boost"
icu: ""
zmq: "--build-zmq"
cc: "clang-14"
flags: "-Os -fPIE"
cc: "clang-15"
flags: "-Og -fPIE"
options: ""
packager: "apt"
packages: ""

- os: ubuntu-22.04
preset: "nix-gnu-release-static-size"
cxx: "clang++-14"
cxx: "clang++-15"
link: "static"
optimization: "size"
assert: "ndebug"
coverage: "nocov"
boost: "--build-boost"
icu: "--build-icu --with-icu"
zmq: "--build-zmq"
cc: "clang-14"
cc: "clang-15"
flags: "-Os -fPIE"
options: ""
packager: "apt"
Expand Down Expand Up @@ -538,7 +550,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare toolchain [generic]
run: |
Expand All @@ -559,7 +571,7 @@ jobs:
shell: bash
run: |
WORKSPACE_SUBPATH="${GITHUB_WORKSPACE%libbitcoin-protocol}"
echo "LIBBITCOIN_SRC_PATH=$WORKSPACE_SUBPATH" >> $GITHUB_ENV
echo "LIBBITCOIN_SRC_PATH=${WORKSPACE_SUBPATH}" >> $GITHUB_ENV
if [[ ${{ matrix.packager }} == 'brew' ]]; then
echo "CMAKE_LIBRARY_PATH=/usr/local/lib" >> $GITHUB_ENV
fi
Expand All @@ -574,9 +586,15 @@ jobs:
echo "LINKAGE=--disable-shared" >> $GITHUB_ENV
fi
if [[ ${{ matrix.link }} == 'dynamic' ]]; then
echo "LDFLAGS=-Wl,-rpath,$WORKSPACE_SUBPATH/prefix/${{ matrix.preset }}/lib" >> $GITHUB_ENV
echo "LDFLAGS=-Wl,-rpath,${WORKSPACE_SUBPATH}prefix/${{ matrix.preset }}/lib" >> $GITHUB_ENV
fi
- name: Display Compiler details
shell: bash
run: |
${CC} -v
${CXX} -v
- name: Display CPU details
if: ${{ (runner.os == 'Linux') }}
shell: bash
Expand All @@ -586,8 +604,8 @@ jobs:
- name: Execute install-cmakepresets.sh
run: >
./install-cmakepresets.sh
--build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }}
--prefix=$LIBBITCOIN_SRC_PATH/prefix/${{ matrix.preset }}
--build-dir=${{ env.LIBBITCOIN_SRC_PATH }} ${{ matrix.options }}
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix/${{ matrix.preset }}
--preset=${{ matrix.preset }}
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
Expand Down Expand Up @@ -706,7 +724,7 @@ jobs:
msbuild-architecture: x64

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize SDK
shell: powershell
Expand Down
Loading

0 comments on commit 77c0121

Please sign in to comment.