Added memcheck to CI #126
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
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby: 3.3 | |
os: ubuntu-24.04 | |
# - ruby: 3.2 | |
# os: ubuntu-22.04 | |
# - ruby: 3.1 | |
# os: ubuntu-20.04 | |
# - ruby: "3.0" | |
# os: macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- if: ${{ startsWith(matrix.os, 'ubuntu') }} | |
run: sudo apt-get install libblas-dev liblapack-dev | |
- if: ${{ startsWith(matrix.os, 'macos') }} | |
run: brew install openblas lapack libomp | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: MAKE="make -j$(getconf _NPROCESSORS_ONLN)" bundle exec rake compile | |
- run: bundle exec rake test | |
- run: sudo apt-get update && sudo apt-get install valgrind | |
- run: bundle exec rake test:valgrind |