Use systemd watchdog to restart a node #61
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
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
benchmark_pr_branch: | |
name: Continuous Benchmarking PRs | |
# DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks | |
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
permissions: | |
pull-requests: write | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bencherdev/bencher@main | |
- name: Install Rust | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: sudo add-apt-repository ppa:ethereum/ethereum && sudo apt update && sudo apt install -y solc build-essential pkg-config libssl-dev cmake protobuf-compiler libsystemd-dev | |
- name: Track PR Benchmarks | |
run: | | |
bencher run \ | |
--project zq2 \ | |
--token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
--branch "$GITHUB_HEAD_REF" \ | |
--start-point "$GITHUB_BASE_REF" \ | |
--start-point-hash '${{ github.event.pull_request.base.sha }}' \ | |
--start-point-clone-thresholds \ | |
--start-point-reset \ | |
--testbed self-hosted \ | |
--err \ | |
--adapter rust_criterion \ | |
--github-actions '${{ secrets.GITHUB_TOKEN }}' \ | |
cargo bench |