Skip to content

Commit

Permalink
ci: change to test only on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Jun 29, 2024
1 parent c0b9897 commit 89a829a
Showing 1 changed file with 12 additions and 36 deletions.
48 changes: 12 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,20 @@ on:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby: [ '3.0', '3.1', '3.2', '3.3' ]
run-on: macos-latest
name: Ruby 3.3 (macOS)
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
- name: Install llama.cpp
run: |
brew install llama.cpp
brew info llama.cpp
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
ruby-version: 3.3
bundler-cache: true
- name: Run the default task
run: bundle exec rake
build-win:
runs-on: windows-latest
name: Ruby 3.2 (Windows)
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Build and test with Rake
run: |
bundle exec rake compile -- --with-no-openmp
bundle exec rake test
build-mac:
runs-on: macos-latest
name: Ruby 3.2 (macOS)
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Build and test with Rake
run: bundle exec rake
- name: Build and test with Rake
run: |
bundle exec rake compile -- --with-opt-dir=/opt/homebrew
bundle exec rake test

0 comments on commit 89a829a

Please sign in to comment.