Skip to content

ci: add windows build #76

ci: add windows build

ci: add windows build #76

Workflow file for this run

name: build
on:
push:
branches:
- main
- dev*
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '3.0', '3.1', '3.2' ]
steps:
- uses: actions/checkout@v4
- name: Install gcc and gfortran
run: sudo apt-get install -y gcc gfortran
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test with Rake
run: bundle exec rake
build-win:
runs-on: windows-latest
name: Ruby 3.2 (Windows)
steps:
- uses: actions/checkout@v4
- name: Install MinGW
run: choco install mingw
- 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