File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Add to release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ tag :
7
+ description : ' Release number'
8
+ required : true
9
+ default : 0
10
+ type : number
11
+ workflow_call :
12
+ inputs :
13
+ tag :
14
+ description : ' Release number'
15
+ required : true
16
+ default : 0
17
+ type : number
18
+
19
+ jobs :
20
+ build :
21
+ runs-on : windows-2019
22
+
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ - name : Set up JDK 17
26
+ uses : actions/setup-java@v2
27
+ with :
28
+ java-version : ' 17'
29
+ distribution : ' adopt'
30
+
31
+ - name : Build x86-64 mainnet
32
+ run : |
33
+ mkdir artifacts-dev
34
+ git fetch -a
35
+ mvn clean compile package -DskipTests
36
+ cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-dev.jar
37
+
38
+ - name : Build x86-64 testnet
39
+ run : |
40
+ mvn clean compile package -DskipTests -Dton_branch=testnet
41
+ cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-testnet-dev.jar
42
+
43
+ - name : Build arm64-aarch64 mainnet
44
+ run : |
45
+ mvn clean compile package -DskipTests -Darch=-aarch64
46
+ cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-dev.jar
47
+
48
+ - name : Build arm64-aarch64 testnet
49
+ run : |
50
+ mvn clean compile package -DskipTests -Dton_branch=testnet -Darch=-aarch64
51
+ cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-testnet-dev.jar
52
+
53
+ - name : Upload binaries to release
54
+ uses : svenstaro/upload-release-action@v2
55
+ with :
56
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
57
+ file : artifacts-dev/*.jar
58
+ tag : v${{ inputs.tag }}
59
+ overwrite : false
60
+ file_glob : true
You can’t perform that action at this time.
0 commit comments