-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (71 loc) · 1.83 KB
/
check.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Check
defaults:
run:
shell: bash
on:
pull_request:
branches:
- '**'
workflow_dispatch:
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
jobs:
check:
name: Check on ${{ matrix.os.runner }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: ${{ matrix.os.shell }}
strategy:
fail-fast: false
matrix:
os:
- runner: macos-latest
shell: bash
- runner: ubuntu-latest
shell: bash
- runner: windows-latest
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
msystem: MINGW64
path-type: inherit
update: true
install: >-
tar
- uses: actions/checkout@v3
- name: Restore native cache
id: cache-native
uses: actions/cache@v3.2.4
with:
path: |
scripts/build
key: ${{ runner.os }}-native-${{ hashFiles('./scripts/*') }}
- name: Setup native libraries
run: ./scripts/setup.sh
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Restore Gradle cache
id: cache
uses: actions/cache@v3.2.4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Gradle Check
run: ./gradlew check --scan
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: reports-${{ runner.os }}
path: |
**/build/reports