Fix GCC warning about array-bounds in BlockChainCache.cpp when replac… #278
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI CMake | |
on: [push, pull_request] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci-cmake: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- name: Ubuntu 20.04 GCC 7 | |
os: ubuntu-20.04 | |
c_compiler: gcc-7 | |
cxx_compiler: g++-7 | |
packages: build-essential python3-dev gcc-7 g++-7 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 GCC 8 | |
os: ubuntu-20.04 | |
c_compiler: gcc-8 | |
cxx_compiler: g++-8 | |
packages: build-essential python3-dev gcc-8 g++-8 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 GCC 9 | |
os: ubuntu-20.04 | |
c_compiler: gcc-9 | |
cxx_compiler: g++-9 | |
packages: build-essential python3-dev gcc-9 g++-9 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 GCC 10 | |
os: ubuntu-20.04 | |
c_compiler: gcc-10 | |
cxx_compiler: g++-10 | |
packages: build-essential python3-dev gcc-10 g++-10 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 6.0 | |
os: ubuntu-20.04 | |
c_compiler: clang-6.0 | |
cxx_compiler: clang++-6.0 | |
packages: build-essential python3-dev clang-6.0 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 7 | |
os: ubuntu-20.04 | |
c_compiler: clang-7 | |
cxx_compiler: clang++-7 | |
packages: build-essential python3-dev clang-7 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 8 | |
os: ubuntu-20.04 | |
c_compiler: clang-8 | |
cxx_compiler: clang++-8 | |
packages: build-essential python3-dev clang-8 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 9 | |
os: ubuntu-20.04 | |
c_compiler: clang-9 | |
cxx_compiler: clang++-9 | |
packages: build-essential python3-dev clang-9 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 10 | |
os: ubuntu-20.04 | |
c_compiler: clang-10 | |
cxx_compiler: clang++-10 | |
packages: build-essential python3-dev clang-10 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 20.04 Clang 11 | |
os: ubuntu-20.04 | |
c_compiler: clang-11 | |
cxx_compiler: clang++-11 | |
packages: build-essential python3-dev clang-11 git cmake libboost1.67-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 GCC 11 | |
os: ubuntu-22.04 | |
c_compiler: gcc-11 | |
cxx_compiler: g++-11 | |
packages: build-essential python3-dev gcc-11 g++-11 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 GCC 12 | |
os: ubuntu-22.04 | |
c_compiler: gcc-12 | |
cxx_compiler: g++-12 | |
packages: build-essential python3-dev gcc-12 g++-12 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 Clang 12 | |
os: ubuntu-22.04 | |
c_compiler: clang-12 | |
cxx_compiler: clang++-12 | |
packages: build-essential python3-dev clang-12 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 Clang 13 | |
os: ubuntu-22.04 | |
c_compiler: clang-13 | |
cxx_compiler: clang++-13 | |
packages: build-essential python3-dev clang-13 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 Clang 14 | |
os: ubuntu-22.04 | |
c_compiler: clang-14 | |
cxx_compiler: clang++-14 | |
packages: build-essential python3-dev clang-14 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
- name: Ubuntu 22.04 Clang 15 | |
os: ubuntu-22.04 | |
c_compiler: clang-15 | |
cxx_compiler: clang++-15 | |
packages: build-essential python3-dev clang-15 git cmake libboost1.74-all-dev libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ${{ matrix.packages }} | |
- name: Generate project files | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. | |
env: | |
CC: ${{ matrix.c_compiler }} | |
CXX: ${{ matrix.cxx_compiler }} | |
- name: Compile source code | |
run: | | |
cd build | |
cmake --build . |