From 349b4fb4d09d6009b258765894db7e639f90f51c Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 26 Oct 2022 20:29:48 -0400 Subject: [PATCH] Restore CI Signed-off-by: Peter Zhu --- .github/workflows/CI.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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