diff --git a/.github/workflows/check-prop.yml b/.github/workflows/check-prop.yml new file mode 100644 index 0000000..c1a05c3 --- /dev/null +++ b/.github/workflows/check-prop.yml @@ -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 diff --git a/flake.lock b/flake.lock index e69de29..4b8e412 100644 --- a/flake.lock +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1738579205, + "narHash": "sha256-o6BeeanSUALvz8oL2CHOikVjCf7j+HqlA0WGvKOUX3Q=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "be5cf18b3d26ba2db938a72ade93ac8a9a7462ff", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "release-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c47f7bc --- /dev/null +++ b/flake.nix @@ -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; + } + ); +}