Skip to content

Commit

Permalink
Add debug workflow with sanitizers enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 3, 2024
1 parent dc08367 commit 0729584
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/test-debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on: [push, pull_request]

permissions:
contents: read

env:
CONSOLE_OUTPUT: XTerm
RUBY_DEBUG: true
RUBY_SANITIZE: true
ASAN_OPTIONS: halt_on_error=0:use_sigaltstack=0:detect_leaks=0

jobs:
test:
name: ${{matrix.ruby}} on ${{matrix.os}} (debug)
runs-on: ${{matrix.os}}-latest

strategy:
matrix:
os:
- ubuntu

ruby:
- "3.3"
- "head"

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true

- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu'
run: sudo apt-get install -y liburing-dev

- name: Run tests
timeout-minutes: 10
run: LD_PRELOAD=/usr/lib/libasan.so bundle exec bake build test
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ permissions:

env:
CONSOLE_OUTPUT: XTerm
RUBY_DEBUG: true

jobs:
test:
Expand Down

0 comments on commit 0729584

Please sign in to comment.