Skip to content

Commit

Permalink
Add mac platform to CI (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
  • Loading branch information
naveentatikonda committed Oct 25, 2022
1 parent f332ccb commit 5bb7a3f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5bb7a3f

Please sign in to comment.