-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (55 loc) · 1.63 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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