39 lines
983 B
YAML
39 lines
983 B
YAML
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- ready_for_review
|
|
- labeled
|
|
jobs:
|
|
build-and-test:
|
|
name: "Build and Test"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
- name: Install dependencies
|
|
run: nix-env -i mill verilator z3 -f '<nixpkgs>'
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Test
|
|
run: make test
|
|
|
|
check-format:
|
|
name: "Check Format"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
- name: Install dependencies
|
|
run: nix-env -i mill -f '<nixpkgs>'
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Test
|
|
run: make checkformat
|