Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 67 additions & 69 deletions .github/workflows/cmake-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,60 +47,59 @@ jobs:
-DSYSTEM_UNIVALUE=ON
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: |
packages: >-
${{matrix.deps}}
ccache
cmake
libcurl4-openssl-dev
libssl-dev
libzip-dev
ninja-build
pkgconf
zipcmp
zipmerge
ziptool
version: ${{matrix.tag}}
- name: Install Boost dependencies
run: |
sudo apt-get install -y --no-install-recommends \
libboost-dev \
libboost-date-time-dev \
libboost-exception-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libboost-serialization-dev \
libboost-test-dev \
libboost-thread-dev
run: sudo apt-get install -y --no-install-recommends
libboost-dev
libboost-date-time-dev
libboost-exception-dev
libboost-filesystem-dev
libboost-iostreams-dev
libboost-serialization-dev
libboost-test-dev
libboost-thread-dev
- name: Configure
run: |
cmake -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
${{matrix.options}} \
-DENABLE_TESTS=ON
run: cmake
-B ${{github.workspace}}/build -G Ninja
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
${{matrix.options}}
-DENABLE_TESTS=ON
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-linux-${{matrix.tag}}-${{github.run_id}}
restore-keys: |
ccache-linux-${{matrix.tag}}-
restore-keys: ccache-linux-${{matrix.tag}}-
- name: Build
run: |
cmake --build ${{github.workspace}}/build -v -j $(nproc)
run: cmake --build ${{github.workspace}}/build -v -j $(nproc)
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-linux-${{matrix.tag}}-${{github.run_id}}
- name: Run tests
run: |
ctest --test-dir ${{github.workspace}}/build -j $(nproc)
run: ctest --test-dir ${{github.workspace}}/build -j $(nproc)
- name: Upload test logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: testlog-linux-${{matrix.tag}}
Expand Down Expand Up @@ -131,7 +130,7 @@ jobs:
qt@5
options: >-
-DENABLE_GUI=ON
-DQt5_DIR=/usr/local/opt/qt@5/lib/cmake/Qt5
-DQt5_DIR=$(brew --prefix qt@5)/lib/cmake/Qt5
-DENABLE_QRENCODE=ON
-DENABLE_UPNP=ON
- tag: system-libs
Expand All @@ -141,52 +140,54 @@ jobs:
vim
options: >-
-DSYSTEM_BDB=ON
-DBerkeleyDB_INCLUDE_DIR=/usr/local/opt/berkeley-db@5/include
-DBerkeleyDB_CXX_LIBRARY=/usr/local/opt/berkeley-db@5/lib/libdb_cxx.dylib
-DBerkeleyDB_INCLUDE_DIR=$(brew --prefix berkeley-db@5)/include
-DBerkeleyDB_CXX_LIBRARY=$(brew --prefix berkeley-db@5)/lib/libdb_cxx.dylib
-DSYSTEM_SECP256K1=ON
-DSYSTEM_XXD=ON
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: brew install
${{matrix.deps}}
boost
ccache
libzip
ninja
openssl@3
perl
pkg-config
- name: Prepare source
run: |
brew install boost ccache ninja ${{matrix.deps}}
- name: Configure
run: |
PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig:${PKG_CONFIG_PATH}"
export PKG_CONFIG_PATH

pushd src
../contrib/nomacro.pl
popd

cmake -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
${{matrix.options}} \
-DENABLE_TESTS=ON
- name: Configure
run: cmake
-B ${{github.workspace}}/build -G Ninja
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
${{matrix.options}}
-DENABLE_TESTS=ON
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-macos-${{matrix.tag}}-${{github.run_id}}
restore-keys: |
ccache-macos-${{matrix.tag}}-
restore-keys: ccache-macos-${{matrix.tag}}-
- name: Build
run: |
cmake --build ${{github.workspace}}/build -v -j $(sysctl -n hw.logicalcpu)
run: cmake --build ${{github.workspace}}/build -v -j $(sysctl -n hw.logicalcpu)
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-macos-${{matrix.tag}}-${{github.run_id}}
- name: Run tests
run: |
ctest --test-dir ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
run: ctest --test-dir ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
- name: Upload test logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: testlog-macos-${{matrix.tag}}
Expand Down Expand Up @@ -224,7 +225,7 @@ jobs:
-DENABLE_UPNP=ON
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -243,34 +244,31 @@ jobs:
openssl:p
toolchain:p
- name: Configure
run: |
cmake -B ./build -G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
${{matrix.options}} \
-DBUILD_SHARED_LIBS=OFF -DENABLE_TESTS=ON
run: cmake
-B ./build -G Ninja
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
${{matrix.options}}
-DBUILD_SHARED_LIBS=OFF -DENABLE_TESTS=ON
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-msys2-${{matrix.tag}}-${{github.run_id}}
restore-keys: |
ccache-msys2-${{matrix.tag}}-
restore-keys: ccache-msys2-${{matrix.tag}}-
- name: Build
run: |
cmake --build ./build -v -j $NUMBER_OF_PROCESSORS
run: cmake --build ./build -v -j $NUMBER_OF_PROCESSORS
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: always()
with:
path: ${{env.CCACHE_DIR}}
key: ccache-msys2-${{matrix.tag}}-${{github.run_id}}
- name: Run tests
run: |
ctest --test-dir ./build -j $NUMBER_OF_PROCESSORS
run: ctest --test-dir ./build -j $NUMBER_OF_PROCESSORS
- name: Upload test logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: testlog-msys-${{matrix.tag}}
Expand Down