From 4b7b356cd15281f728843d3415d21aa3c47f588c Mon Sep 17 00:00:00 2001 From: Andrei Malashkin Date: Tue, 17 Sep 2024 12:39:42 +0200 Subject: [PATCH] add sanitizers for crypto3 --- .../clang-sanitizers-linux-nix-check.yml | 24 +++++++++++++++++++ flake.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/clang-sanitizers-linux-nix-check.yml diff --git a/.github/workflows/clang-sanitizers-linux-nix-check.yml b/.github/workflows/clang-sanitizers-linux-nix-check.yml new file mode 100644 index 0000000000..331c001c13 --- /dev/null +++ b/.github/workflows/clang-sanitizers-linux-nix-check.yml @@ -0,0 +1,24 @@ +name: Build and Test on Linux Platforms + +on: + workflow_call: + +jobs: + build-and-test: + name: "Build and test Linux with clang" + runs-on: [self-hosted, Linux, X64, aws_autoscaling] + steps: + # https://github.com/actions/checkout/issues/1552 + - name: Clean up after previous checkout + run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*; + + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Run checks + run: nix build -L .?#checks.x86_64-linux.all-sanitizers + env: + NIX_CONFIG: | + cores = 4 diff --git a/flake.nix b/flake.nix index 2cc0f44f12..6666cead47 100644 --- a/flake.nix +++ b/flake.nix @@ -216,6 +216,10 @@ name = "all"; paths = [ crypto3-clang parallel-crypto3-clang evm-assigner-clang transpiler-clang proof-producer-clang ]; }; + all-sanitizers = pkgs.symlinkJoin { + name = "all"; + paths = [ crypto3-clang-sanitize ]; + }; all-gcc = pkgs.symlinkJoin { name = "all"; paths = [ crypto3-gcc parallel-crypto3-gcc evm-assigner-gcc zkevm-framework-gcc transpiler-gcc proof-producer-gcc ];