diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c7d7e28e5a..e2ea9f21b8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,9 +16,10 @@ jobs: strategy: matrix: java: [11, 17] + os: [ubuntu-latest, macos-latest] name: Build and Test k-NN Plugin - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout k-NN @@ -29,10 +30,17 @@ jobs: with: java-version: ${{ matrix.java }} - - name: Install dependencies + - name: Install dependencies on ubuntu + if: startsWith(matrix.os,'ubuntu') run: | sudo apt-get install libopenblas-dev gfortran -y + - name: Install dependencies on macos + if: startsWith(matrix.os, 'macos') + run: | + brew reinstall gcc + export FC=/usr/local/Cellar/gcc/12.2.0/bin/gfortran + - name: Run build run: | ./gradlew build