Skip to content

Commit

Permalink
Add debug workflow with sanitizers enabled. (#115)
Browse files Browse the repository at this point in the history
* Add debug workflow with sanitizers enabled.

* Use `asan` ruby.

* Run on ubuntu v24.04.
  • Loading branch information
ioquatix authored Oct 5, 2024
1 parent 041f7db commit 92a7db1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/test-debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Debug

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}}
runs-on: ${{matrix.os}}

strategy:
matrix:
os:
- ubuntu-24.04

ruby:
- asan

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: 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 92a7db1

Please sign in to comment.