Skip to content

Commit cad07ab

Browse files
committed
add sanitizer build to CI
1 parent a9f5397 commit cad07ab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- uses: cachix/install-nix-action@v12
1111
with:
1212
skip_adding_nixpkgs_channel: true
13-
- run: nix-build -A hydraJobs.release
13+
- run: nix-build -A hydraJobs.release -A hydraJobs.build-sanitized

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
};
5959

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

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

0 commit comments

Comments
 (0)