2019-12-08 10:59:49 +03:00
|
|
|
name: Gradle build
|
|
|
|
|
2020-12-07 00:28:54 +03:00
|
|
|
on: [ push ]
|
2019-12-08 10:59:49 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-12-07 00:28:54 +03:00
|
|
|
build-ubuntu:
|
|
|
|
runs-on: ubuntu-20.04
|
2019-12-08 10:59:49 +03:00
|
|
|
|
2020-12-07 00:28:54 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 11
|
2021-01-30 20:12:14 +03:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-12-07 00:28:54 +03:00
|
|
|
- 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
|
|
|
|
- name: Cache gradle
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
2020-12-07 10:01:46 +03:00
|
|
|
.gradle
|
|
|
|
build
|
|
|
|
~/.gradle
|
|
|
|
key: gradle
|
|
|
|
restore-keys: gradle
|
2020-12-07 00:28:54 +03:00
|
|
|
|
|
|
|
- name: Cache konan
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.konan/dependencies
|
2020-12-07 10:01:46 +03:00
|
|
|
~/.konan/kotlin-native-prebuilt-linux-*
|
|
|
|
key: ${{ runner.os }}-konan
|
|
|
|
restore-keys: ${{ runner.os }}-konan
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew -Dorg.gradle.daemon=false --build-cache 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
|
2021-01-30 20:12:14 +03:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Cache gradle
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
2020-12-07 10:01:46 +03:00
|
|
|
.gradle
|
|
|
|
build
|
|
|
|
~/.gradle
|
|
|
|
key: gradle
|
|
|
|
restore-keys: gradle
|
2020-12-07 00:28:54 +03:00
|
|
|
|
|
|
|
- name: Cache konan
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.konan/dependencies
|
2020-12-07 10:01:46 +03:00
|
|
|
~/.konan/kotlin-native-prebuilt-macos-*
|
|
|
|
key: ${{ runner.os }}-konan
|
|
|
|
restore-keys: ${{ runner.os }}-konan
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: sudo ./gradlew -Dorg.gradle.daemon=false --build-cache build
|
|
|
|
|
|
|
|
build-windows:
|
|
|
|
runs-on: windows-latest
|
2019-12-08 10:59:49 +03:00
|
|
|
|
|
|
|
steps:
|
2020-12-07 00:28:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 11
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 11
|
2021-01-30 20:12:14 +03:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Add msys to path
|
|
|
|
run: SETX PATH "%PATH%;C:\msys64\mingw64\bin"
|
|
|
|
- name: Cache gradle
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
2020-12-07 10:01:46 +03:00
|
|
|
.gradle
|
|
|
|
build
|
|
|
|
~/.gradle
|
2020-12-08 12:35:30 +03:00
|
|
|
key: ${{ runner.os }}-gradle
|
|
|
|
restore-keys: ${{ runner.os }}-gradle
|
2020-12-07 00:28:54 +03:00
|
|
|
|
|
|
|
- name: Cache konan
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.konan/dependencies
|
2020-12-07 10:01:46 +03:00
|
|
|
~/.konan/kotlin-native-prebuilt-mingw-*
|
|
|
|
key: ${{ runner.os }}-konan
|
|
|
|
restore-keys: ${{ runner.os }}-konan
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew --build-cache build
|