Merge pull request #30 from jagerman/fetch-chain-ids #108
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: Ubuntu CI Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Install prerequisites | |
run: sudo apt-get update && sudo apt-get install -y cmake build-essential libboost-all-dev libssl-dev libcurl4-openssl-dev libsodium-dev | |
- name: Install Foundry | |
run: | | |
curl -L https://foundry.paradigm.xyz | bash | |
/home/runner/.config/.foundry/bin/foundryup | |
- name: Start node in background | |
run: | | |
/home/runner/.config/.foundry/bin/anvil & | |
echo "NODE_PID=$!" >> $GITHUB_ENV | |
- name: Create Build Directory | |
run: mkdir -p build | |
- name: CMake Generate | |
run: cmake -Bbuild -H. | |
- name: Compile | |
run: cmake --build build | |
- name: Run tests | |
run: ctest -VV --repeat until-pass:2 --test-dir build | |
- name: Kill node | |
run: kill $NODE_PID | |
if: always() | |