Skip to content

Commit 0bcf90e

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

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

.github/workflows/push.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
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:
11+
name: "Build and Test"
412
runs-on: ubuntu-latest
5-
container: archlinux/archlinux:latest
613
steps:
14+
- uses: cachix/install-nix-action@v27
15+
with:
16+
nix_path: nixpkgs=channel:nixos-unstable
717
- name: Install dependencies
8-
run: pacman -Syu --noconfirm make mill z3
9-
- uses: actions/checkout@v2
10-
- name: Check Format
11-
run: make checkformat
18+
run: nix-env -i mill verilator z3 -f '<nixpkgs>'
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
1222
- name: Test
1323
run: make test
24+
25+
check-format:
26+
name: "Check Format"
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: cachix/install-nix-action@v27
30+
with:
31+
nix_path: nixpkgs=channel:nixos-unstable
32+
- name: Install dependencies
33+
run: nix-env -i mill -f '<nixpkgs>'
34+
- uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.event.pull_request.head.sha }}
37+
- name: Test
38+
run: make checkformat

0 commit comments

Comments
 (0)