Skip to content

Commit 8695de2

Browse files
committed
ci: update CI
Signed-off-by: unlsycn <[email protected]>
1 parent 45a31a0 commit 8695de2

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

.github/workflows/push.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
1-
on: [pull_request]
1+
on:
2+
pull_request:
3+
types:
4+
- opened
5+
- synchronize
6+
- reopened
7+
- ready_for_review
8+
- labeled
29
jobs:
3-
checks:
10+
build-and-test:
411
runs-on: ubuntu-latest
5-
container: archlinux/archlinux:latest
612
steps:
13+
- uses: cachix/install-nix-action@v27
14+
with:
15+
nix_path: nixpkgs=channel:nixos-unstable
716
- name: Install dependencies
8-
run: pacman -Syu --noconfirm make mill z3
9-
- uses: actions/checkout@v2
10-
- name: Check Format
11-
run: make checkformat
17+
run: nix-shell -p mill verilator z3
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
1221
- name: Test
1322
run: make test
23+
24+
check-format:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: cachix/install-nix-action@v27
28+
with:
29+
nix_path: nixpkgs=channel:nixos-unstable
30+
- name: Install dependencies
31+
run: nix-shell -p mill
32+
- uses: actions/checkout@v4
33+
with:
34+
ref: ${{ github.event.pull_request.head.sha }}
35+
- name: Test
36+
run: make checkformat

0 commit comments

Comments
 (0)