diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b96299f..e9f66cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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