forked from BlockchainCommons/bc-ur
-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (24 loc) · 1.03 KB
/
ci.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
name: ci
on: [push, pull_request]
jobs:
build-MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: brew install cppcheck
- run: ./configure
- run: cppcheck --enable=all --inline-suppr --suppress=unusedFunction --suppress=noValidConfiguration --error-exitcode=1 --suppress=missingInclude .
- run: make check
- run: sudo make install
- run: make distcheck && make distclean
build-Linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - || exit 1
- run: sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main" || exit 1
- run: sudo apt-get update || exit 1
- run: sudo apt-get install -y clang-10 libc++-10-dev libc++abi-10-dev || exit 1
- run: export CC="clang-10" && export CXX="clang++-10" && ./configure && make check
- run: sudo make install
- run: export CC="clang-10" && export CXX="clang++-10" && make distcheck && make distclean