This repository was archived by the owner on Apr 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
examples/relu-torch-bounds Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : " Check Nix formatting "
1+ name : " Nix checks "
22on :
33 push :
44 branches : [main]
99
1010jobs :
1111 build :
12- name : Check Nix formatting
12+ name : Nix checks
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
1818 nix_path : nixpkgs=channel:nixos-unstable
1919 - name : Check formatting
2020 run : nix fmt -- --ci
21+ - name : Nix checks
22+ run : nix build .\#checks.x86_64-linux.default
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ universal = false
44
55[torch ]
66src = [" torch-ext/torch_binding.cpp" , " torch-ext/torch_binding.h" ]
7- minver = " 2.8 "
7+ minver = " 2.9 "
88maxver = " 2.9"
99
1010[kernel .relu ]
Original file line number Diff line number Diff line change 118118
119119 in
120120 rec {
121+ checks . default = pkgs . callPackage ./lib/checks.nix {
122+ inherit buildSets ;
123+ build = defaultBuildPerSystem . ${ system } ;
124+ } ;
125+
121126 formatter = pkgs . nixfmt-tree ;
122127
123128 packages =
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ runCommand ,
4+
5+ build ,
6+ buildSets ,
7+ } :
8+
9+ let
10+ kernelBuildSets = build . applicableBuildSets {
11+ inherit buildSets ;
12+ path = ../examples/relu-torch-bounds ;
13+ } ;
14+ in
15+ assert lib . assertMsg ( builtins . all ( buildSet : buildSet . torch . version == "2.9.0" ) kernelBuildSets ) ''
16+ Torch minver/maxver filtering does not work.
17+ '' ;
18+ runCommand "builder-nix-checks" { } ''
19+ touch $out
20+ ''
You can’t perform that action at this time.
0 commit comments