Merge pull request #54 from hax0kartik/bitcoin-fuzz #74
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: Check | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install rust-toolchain | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
- name: Install go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- name: Install LLVM and Clang | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 18 | |
sudo ln -sfT clang++-18 /usr/bin/clang++ | |
sudo ln -sfT clang-18 /usr/bin/clang | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
brew install llvm autoconf automake libtool | |
fi | |
shell: bash | |
- name: Install Boost | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt install libboost-all-dev | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
brew install boost | |
fi | |
- name: Build | |
timeout-minutes: 40 | |
run: | | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
export PATH=/usr/local/bin:$PATH | |
export CC=clang | |
export CXX=clang++ | |
export PATH="$(brew --prefix)/opt/llvm/bin:$PATH" | |
make | |
else | |
make -j$(nproc) | |
fi | |
- name: Test | |
run: PRINT_ALL_FUZZ_TARGETS_AND_ABORT=1 ./bitcoinfuzz |