-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (45 loc) · 1.18 KB
/
sanitizer.yml
File metadata and controls
48 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Run Sanitizer
on:
push:
branches:
- main
paths:
- "apps/**"
- "bindings/**"
- "include/**"
- "src/**"
- "!src/electionguard-ui/**"
- "test/**"
# schedule:
# - cron: '0 0 * * 2-6' Daily at 00:00 UTC Tuesday-saturday
env:
TARGET: Release
compiler: clang
compiler_version: "14"
jobs:
Test:
runs-on: ubuntu-24.04
steps:
- name: Fail if non Linux OS
if: runner.os != 'Linux'
run: exit 1
- name: Checkout Code
uses: actions/checkout@v4
- name: Update Environment
run: |
sudo apt-get update
sudo apt-get install -y clang-${{ env.compiler_version }} g++-multilib
echo "CC=clang-${{ env.compiler_version }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ env.compiler_version }}" >> $GITHUB_ENV
- name: Configure Environment
run: make environment
- name: Build
run: make build
- name: Run Tests
run: make test
- name: Run .Net Tests
run: make test-netstandard
- name: Run Benchmarks
run: make bench
- name: Run Sanitizer
run: make sanitize-asan # TODO: Add other sanitizers