Skip to content

Commit

Permalink
ci: add windows and macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Jan 14, 2024
1 parent 45d3ad7 commit 216d5ff
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,43 @@ jobs:
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: Install gfortran
run: choco install -y mingw
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Build
run: bundle exec rake compile
- name: Cache OpenBLAS
uses: actions/cache@v3
with:
path: vendor
key: win-vendor-${{ hashFiles('ext/numo/tiny_linalg/extconf.rb') }}
- name: Run test
run: 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
run: bundle exec rake compile
- name: Cache OpenBLAS
uses: actions/cache@v3
with:
path: vendor
key: mac-vendor-${{ hashFiles('ext/numo/tiny_linalg/extconf.rb') }}
- name: Run test
run: bundle exec rake test

0 comments on commit 216d5ff

Please sign in to comment.