Skip to content

Commit

Permalink
add sanitizer build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Aug 26, 2021
1 parent a9f5397 commit cad07ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: cachix/install-nix-action@v12
with:
skip_adding_nixpkgs_channel: true
- run: nix-build -A hydraJobs.release
- run: nix-build -A hydraJobs.release -A hydraJobs.build-sanitized
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
};

build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new);
build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: {
configureFlags = [ "--with-asan " "--with-ubsan" ];
}));

release = pkgs.releaseTools.aggregate
{ name = "patchelf-${self.hydraJobs.tarball.version}";
Expand Down

0 comments on commit cad07ab

Please sign in to comment.