diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 223dd70..3319ee4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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