-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (56 loc) · 1.53 KB
/
ci.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
name: CI
on:
push:
branches-ignore:
- '*'
tags:
- '*.*.*'
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- {
os: ubuntu-latest,
test: false,
libext: so
}
- { os: macos-latest,
test: false,
libext: dylib
}
runs-on: ${{ matrix.config.os }}
name: Build ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Everscale Client
uses: actions/cache@v2
with:
path: jni/target
key: ${{ runner.os }}-client-${{ github.ref }}
- name: Build Everscale Client
run: |
projectdir=`pwd`
branch=${GITHUB_REF##*/}
echo running on branch $branch
tondir=target/TON-SDK
git clone --single-branch --branch $branch https://github.com/tonlabs/TON-SDK.git $tondir
cd jni
cargo build --release || exit
resdir=$projectdir/binding/src/main/resources
mkdir -p $resdir
cp target/release/*.${{ matrix.config.libext }} $resdir
cd $projectdir
- name: Tests
if: matrix.config.test
run: |
docker run -d --name local-node -e USER_AGREEMENT=yes -p80:80 tonlabs/local-node
mvn install
- name: Skip Tests
if: ${{ !matrix.config.test }}
run: mvn -DskipTests install