-
Notifications
You must be signed in to change notification settings - Fork 54
49 lines (45 loc) · 1.25 KB
/
build-rd-kt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: rd-kt
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-2019]
fail-fast: false
env:
GRADLE_USER_HOME: ${{ github.workspace }}/.github/gradle
TEAMCITY_VERSION: 1 # temporary; to disable cross tests
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- name: Gradle Wrapper Cache
uses: actions/cache@v3
with:
path: ${{ env.GRADLE_USER_HOME }}/wrapper
key: ${{ runner.os }}.gradle-wrapper.${{ hashFiles('gradle/**') }}
- name: Gradle Cache
uses: actions/cache@v3
with:
path: ${{ env.GRADLE_USER_HOME }}/caches/modules-2
key: ${{ runner.os }}.gradle.${{ hashFiles('**/*.gradle.kts') }}
- name: Assemble
run: ./gradlew assemble
- name: Build
run: ./gradlew build
- name: Upload Test Results
uses: actions/[email protected]
if: ${{ always() }}
with:
name: tests-log.${{ runner.os }}
path: "**/reports/*"
validation:
runs-on: ubuntu-22.04
name: "Validate Gradle wrapper"
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1