Skip to content

Commit

Permalink
Added test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Joannou authored and PeterRugg committed Feb 4, 2025
1 parent 033135b commit 9e0636e
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check-prop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "check properties"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup environment
run: nix develop --command make verilog-wrappers verilog-props
- name: Run property checks
run: nix develop --command make check-prop
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let # helper bindings
# imported nix packages
pkgs = import nixpkgs { inherit system; };
# shell environment
dfltShell = pkgs.mkShell {
buildInputs = with pkgs; [
sby
boolector
haskellPackages.sv2v
bluespec
];
};
# output attribute set
in {
devShells.default = dfltShell;
}
);
}

0 comments on commit 9e0636e

Please sign in to comment.