Update workflows again #5
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: | |
run: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
- "3.4" | |
name: ${{ matrix.ruby-version }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y rake-compiler | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Build and install | |
run: | | |
bundle install | |
bundle exec rake gem | |
gem install pkg/numru-narray-*.gem | |
- name: Tests | |
run: | | |
rake test | |
# MRI: | |
# name: ${{ matrix.os }} ruby-${{ matrix.ruby }} | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# os: [ubuntu-latest, macos-11, windows-2022] | |
# ruby: [ '3.1', '3.2,', '3.3', '3.4', head] | |
# include: | |
# - { os: windows-2022 , ruby: mswin } | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Ruby ${{ matrix.ruby }} | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: ${{ matrix.ruby }} | |
# - name: Build and Install | |
# run: | | |
# gem install --no-document bundler | |
# gem build numru-narray.gemspec | |
# gem install numru-narray-*.gem | |
# bundle install | |
# - name: Tests | |
# run: rake test | |
# ruby-head-debug: | |
# name: Build on ruby-head-debug | |
# runs-on: ubuntu-latest | |
# continue-on-error: true | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# ruby: [ 'debug' ] | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up Ruby ${{ matrix.ruby }} | |
# uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: ${{ matrix.ruby }} | |
# - name: Build and Install | |
# run: | | |
# gem install --no-document bundler | |
# gem build numru-narray.gemspec | |
# gem install numru-narray-*.gem | |
# bundle install | |
# - name: Tests | |
# run: rake test |