-
Notifications
You must be signed in to change notification settings - Fork 31
38 lines (37 loc) · 983 Bytes
/
push.yml
File metadata and controls
38 lines (37 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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