Skip to content

Build, run tests, check formatting #15

Build, run tests, check formatting

Build, run tests, check formatting #15

Workflow file for this run

name: test
run-name: Build, run tests, check formatting
on:
push:
pull_request:
jobs:
test:
runs-on: "ubuntu-22.04"
container:
image: verilator/verilator:v5.016
steps:
- uses: actions/checkout@v4
- name: Install deps
run: apt-get -qqy update && apt-get -qqy --no-install-recommends install cmake build-essential git ca-certificates python3 clang-format-14 shellcheck
- name: Build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build -j"$(nproc)"
- name: Run tests and linters
run: |
PATH="$PWD/build:$PWD/scripts:$PATH"
make -j"$(nproc)" -O -k --no-print-directory -f check.mk