Skip to content

docs(patch): updating README to fix link to documentation #70

docs(patch): updating README to fix link to documentation

docs(patch): updating README to fix link to documentation #70

name: Address sanitizer
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
address-sanitizer:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- name: Homebrew Mac
if: ${{ runner.os == 'Macos' }}
run: |
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
brew install jemalloc
- name: Ubuntu deps
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install -y libjemalloc-dev
- uses: actions/checkout@v3
- name: Swift version
run: swift --version
# Required to clean build directory before sanitizer!
- name: Clean before debug build sanitizier
run: swift package clean
- name: Run address sanitizer
run: swift test --sanitize=address
- name: Clean before release build sanitizier
run: swift package clean
- name: Run address sanitizer on release build
run: swift test --sanitize=address -c release -Xswiftc -enable-testing