-
Notifications
You must be signed in to change notification settings - Fork 35
72 lines (63 loc) · 1.94 KB
/
build.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
name: build
on:
workflow_dispatch:
pull_request:
branches:
- "**"
push:
branches:
- "**"
jobs:
build:
strategy:
matrix:
os: [ ubuntu-22.04 ]
# os: [ macOS-latest, windows-latest, ubuntu-22.04 ]
runs-on: ${{matrix.os}}
container: ubuntu:trusty
steps:
- name: Run script file
run: |
ls -l /usr/lib/x86_64-linux-gnu/libsqlite3*
sudo apt install glibc-source -y
sudo apt install libsqlite3-dev -y
sqlite3 --version
shell: bash
- name: Checkout the repo
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Install msys2
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain libsqlite
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Cache gradle
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache konan
uses: actions/cache@v2
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Update Environment Variables
if: matrix.os == 'windows-latest'
shell: bash
run: |
echo "c:\msys64\mingw64\bin" >> $GITHUB_PATH
- name: Build
run: ./gradlew build --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"