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 ecee3d9
Showing 1 changed file with 13 additions and 37 deletions.
50 changes: 13 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,21 @@ on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby: [ '3.0', '3.1', '3.2', '3.3' ]
build-mac:
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 ecee3d9

Please sign in to comment.