kmath/.github/workflows/gradle.yml

102 lines
2.9 KiB
YAML
Raw Normal View History

2019-12-08 10:59:49 +03:00
name: Gradle build
2020-10-04 09:26:21 +03:00
on: [ push ]
2019-12-08 10:59:49 +03:00
jobs:
2020-10-04 09:22:00 +03:00
build-ubuntu:
2020-10-14 19:27:59 +03:00
runs-on: ubuntu-20.04
2019-12-08 10:59:49 +03:00
steps:
2020-10-04 09:26:21 +03:00
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install libgsl-dev
2020-10-14 19:43:16 +03:00
run: sudo apt install -y libgsl-dev
- name: Install Chrome
run: |
sudo apt install -y libappindicator1 fonts-liberation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
2020-10-04 09:26:21 +03:00
- name: Cache gradle
uses: actions/cache@v2
with:
path: |
**/.gradle
**/build
2020-10-04 09:26:21 +03:00
key: gradle_6_6_1
restore-keys: gradle_6_6_1
2020-10-04 09:26:21 +03:00
- name: Cache konan
uses: actions/cache@v2
with:
path: |
~/.konan/dependencies
~/.konan/kotlin-native-prebuilt-linux-1.4.20-eap-37
2020-10-04 09:39:39 +03:00
key: ${{ runner.os }}-konan-1.4.20-eap-37
restore-keys: ${{ runner.os }}-konan-1.4.20-eap-37
2020-10-04 09:26:21 +03:00
- name: Build with Gradle
run: sudo ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
2020-10-04 09:26:21 +03:00
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
**/build
2020-10-04 09:26:21 +03:00
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
2020-10-04 09:39:39 +03:00
key: ${{ runner.os }}-konan-1.4.20-eap-37
restore-keys: ${{ runner.os }}-konan-1.4.20-eap-37
2020-10-04 09:26:21 +03:00
- name: Build with Gradle
2020-10-11 18:48:05 +03:00
run: sudo ./gradlew -Dorg.gradle.daemon=false --build-cache :kmath-gsl:cinteropLibgslNative build
2020-10-04 10:39:24 +03:00
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Add msys to path
run: SETX PATH "%PATH%;C:\msys64\mingw64\bin"
- name: Cache gradle
uses: actions/cache@v2
with:
path: |
**/.gradle
**/build
2020-10-04 10:39:24 +03:00
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-mingw-1.4.20-eap-37
key: ${{ runner.os }}-konan-1.4.20-eap-37
restore-keys: ${{ runner.os }}-konan-1.4.20-eap-37
- name: Build with Gradle
2020-10-04 11:53:24 +03:00
run: ./gradlew --build-cache build