From 5bb7a3fe6788fb744d5499feeac189d53afa4000 Mon Sep 17 00:00:00 2001 From: Naveen Tatikonda Date: Tue, 25 Oct 2022 11:37:31 -0500 Subject: [PATCH] Add mac platform to CI (#590) Signed-off-by: Naveen Tatikonda Signed-off-by: Naveen Tatikonda --- .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 f9e914099..20e403038 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