-
Notifications
You must be signed in to change notification settings - Fork 22
40 lines (34 loc) · 1.28 KB
/
commit-windows-x86-64.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
name: Test on Windows x86-64
on: [ push,workflow_dispatch,workflow_call ]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build & Test x86-64 mainnet
timeout-minutes: 10
run: |
git fetch -a
git checkout main
mkdir artifacts
mvn clean compile package -DskipTests
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar
java -jar artifacts/MyLocalTon-x86-64.jar nogui debug test-binaries
java -jar artifacts/MyLocalTon-x86-64.jar nogui debug test-tonlib
- name: Build & Test x86-64 testnet
timeout-minutes: 10
run: |
mvn clean compile package -DskipTests -Dton_branch=testnet
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar
java -jar artifacts/MyLocalTon-x86-64-testnet.jar nogui debug test-binaries
java -jar artifacts/MyLocalTon-x86-64-testnet.jar nogui debug test-tonlib
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: All-MyLocalTon-Jars
path: artifacts