Skip to content

Commit 9e0636e

Browse files
Alexandre JoannouPeterRugg
Alexandre Joannou
authored andcommitted
Added test workflow
1 parent 033135b commit 9e0636e

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

.github/workflows/check-prop.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "check properties"
2+
on:
3+
pull_request:
4+
push:
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: cachix/install-nix-action@v27
11+
with:
12+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
13+
- name: Setup environment
14+
run: nix develop --command make verilog-wrappers verilog-props
15+
- name: Run property checks
16+
run: nix develop --command make check-prop

flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
outputs = { self, nixpkgs, flake-utils }:
7+
flake-utils.lib.eachDefaultSystem (system:
8+
let # helper bindings
9+
# imported nix packages
10+
pkgs = import nixpkgs { inherit system; };
11+
# shell environment
12+
dfltShell = pkgs.mkShell {
13+
buildInputs = with pkgs; [
14+
sby
15+
boolector
16+
haskellPackages.sv2v
17+
bluespec
18+
];
19+
};
20+
# output attribute set
21+
in {
22+
devShells.default = dfltShell;
23+
}
24+
);
25+
}

0 commit comments

Comments
 (0)