Skip to content

Cmpctblock

Cmpctblock #385

Workflow file for this run

name: Zig Test and Benchmark
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
ZIG_VERSION: 0.14.0-dev.1550+4fba7336a
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Unit testing
run: zig build test --summary all
- name: Run benchmarks
run: zig build bench -Doptimize=ReleaseFast
- name: Run node
run: |
zig build -Doptimize=Debug run -- node &
BITCOIN_NODE_PID=$!
sleep 1
kill $BITCOIN_NODE_PID