t #36
Workflow file for this run
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: test | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: ${{ matrix.os }} Ruby ${{ matrix.ruby }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu", "macos"] | |
ruby: ["3.3"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- if: matrix.os == 'macos' | |
run: brew update && brew install llvm libomp autoconf #jemalloc | |
- if: matrix.os == 'ubuntu' | |
run: bundle exec rake jemalloc:build && bundle exec rake odgi:build | |
- if: matrix.os == 'macos' | |
run: | | |
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ LDFLAGS=-L/opt/homebrew/lib bundle exec rake jemalloc:build | |
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ LDFLAGS=-L/opt/homebrew/lib bundle exec rake jemalloc:build | |
- run: bundle exec rake compile | |
- if: matrix.os == 'macos' | |
run: | | |
otool -L lib/odgi/odgi.bundle | |
otool -L odgi/lib/libodgi.dylib | |
pwd | |
install_name_tool -change "@rpath/libodgi.dylib" $(pwd)/odgi/lib/libodgi.dylib lib/odgi/odgi.bundle # FIXME | |
- run: bundle exec rake test |