Add OSX target
This commit is contained in:
parent
159b5530fb
commit
fb4d74e90f
82
.github/workflows/gradle.yml
vendored
82
.github/workflows/gradle.yml
vendored
@ -1,35 +1,65 @@
|
|||||||
name: Gradle build
|
name: Gradle build
|
||||||
|
|
||||||
on: [push]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-ubuntu:
|
build-ubuntu:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Install libgsl-dev
|
- name: Install libgsl-dev
|
||||||
run: sudo apt install libgsl-dev
|
run: sudo apt install libgsl-dev
|
||||||
- name: Cache gradle
|
- name: Cache gradle
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
key: gradle_6_6_1
|
key: gradle_6_6_1
|
||||||
restore-keys: gradle_6_6_1
|
restore-keys: gradle_6_6_1
|
||||||
|
|
||||||
- name: Cache konan
|
- name: Cache konan
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.konan/dependencies
|
~/.konan/dependencies
|
||||||
~/.konan/kotlin-native-prebuilt-linux-1.4.20-eap-37
|
~/.konan/kotlin-native-prebuilt-linux-1.4.20-eap-37
|
||||||
key: ${{ runner.os }}-konan-1.4.0
|
key: ${{ runner.os }}-konan-1.4.0
|
||||||
restore-keys: ${{ runner.os }}-konan-1.4.0
|
restore-keys: ${{ runner.os }}-konan-1.4.0
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
|
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
|
||||||
|
build-osx:
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
- name: Install gsl
|
||||||
|
run: brew install gsl
|
||||||
|
- name: Cache gradle
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
|
key: gradle_6_6_1
|
||||||
|
restore-keys: gradle_6_6_1
|
||||||
|
|
||||||
|
- name: Cache konan
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.konan/dependencies
|
||||||
|
~/.konan/kotlin-native-prebuilt-macos-1.4.20-eap-37
|
||||||
|
key: ${{ runner.os }}-konan-1.4.0
|
||||||
|
restore-keys: ${{ runner.os }}-konan-1.4.0
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
|
||||||
|
Loading…
Reference in New Issue
Block a user