Skip to content

Commit

Permalink
ci: Enable macos
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Aug 22, 2024
1 parent 98d5fc9 commit c44f91c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: ["ubuntu"]
os: ["ubuntu", "macos"]
ruby: ["3.3"]
steps:
- uses: actions/checkout@v4
Expand All @@ -19,10 +19,12 @@ jobs:
- if: matrix.os == 'ubuntu'
run: sudo apt-get update -yq && sudo apt upgrade -yq && sudo apt-get upgrade # libjemalloc-dev
- if: matrix.os == 'macos'
run: brew update && brew install jemalloc
run: brew update && brew install cmake llvm
- if: matrix.os == 'ubuntu'
run: bundle exec rake jemalloc:build && bundle exec rake odgi:build
- if: matrix.os == 'macos'
run: CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang++ LDFLAGS=-L/opt/homebrew/lib bundle exec rake odgi:build
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 odgi:build
- run: bundle exec rake compile
- run: bundle exec rake test

0 comments on commit c44f91c

Please sign in to comment.