Skip to content

Commit

Permalink
Valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 13, 2024
1 parent 21de075 commit f0ffb02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: sudo apt-get update && sudo apt-get install valgrind
- run: MAKE="make -j$(nproc)" bundle exec rake compile
- run: bundle exec rake test
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gemspec
gem "rake"
gem "rake-compiler"
gem "minitest", ">= 5"
gem "ruby_memcheck"
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
require "bundler/gem_tasks"
require "rake/testtask"
require "rake/extensiontask"
require "ruby_memcheck"

task default: :test
Rake::TestTask.new do |t|
test_config = lambda do |t|
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.warning = false
end
Rake::TestTask.new(:test, &test_config)
namespace :test do
RubyMemcheck::TestTask.new(:valgrind, &test_config)
end

Rake::ExtensionTask.new("faiss") do |ext|
ext.name = "ext"
Expand Down

0 comments on commit f0ffb02

Please sign in to comment.