-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug workflow with sanitizers enabled.
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ permissions: | |
|
||
env: | ||
CONSOLE_OUTPUT: XTerm | ||
RUBY_DEBUG: true | ||
|
||
jobs: | ||
test: | ||
|