Skip to content

Commit

Permalink
Added ASAN CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
sadko4u committed Aug 13, 2023
1 parent a122d7e commit 26844e4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,32 @@ jobs:
echo "***** MEMCHECK $test *****"; \
valgrind ${{env.VALGRIND_ARGS}} .build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1 --nofork --debug $test; \
done
arch_linux_asan:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Add debug repositories
run: |
printf "[core-debug]\nInclude = /etc/pacman.d/mirrorlist\n[extra-debug]\nInclude = /etc/pacman.d/mirrorlist\n[multilib-debug]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
printf 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch\n%s\n' "$(cat /etc/pacman.d/mirrorlist)" > /etc/pacman.d/mirrorlist
- name: Install dependencies
run: pacman --noconfirm -Syu base-devel glibc-debug git
- uses: actions/checkout@v3
- name: Configure project
run: make config TEST=1 STRICT=1 DEBUG=1 ASAN=1
- name: Fetch project dependencies
run: make fetch
- name: Build project
run: make VERBOSE=1
- name: Run unit tests
run: .build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1
- name: Run unit tests with memcheck
run: |
for test in $(.build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --list --suppress); do \
echo "***** MEMCHECK $test *****"; \
.build/target/${{env.ARTIFACT}}/${{env.ARTIFACT}}-test utest --verbose --jobs 1 --nofork --debug $test; \
done
arch_linux_debug:
runs-on: ubuntu-latest
container:
Expand Down

0 comments on commit 26844e4

Please sign in to comment.