File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed
Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish artifacts to Maven Central
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : Version
8+ default : 0.3.15
9+
10+ jobs :
11+ build-native :
12+ runs-on : windows-2022
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ repository : supranational/blst
18+ ref : v0.3.15
19+ - uses : actions/setup-java@v4
20+ with :
21+ distribution : ' temurin'
22+ java-version : ' 11'
23+ - uses : egor-tensin/vs-shell@v2
24+ - name : Build native image
25+ run : |
26+ .\build.bat
27+ cd bindings\java
28+ mkdir supranational\blst\Windows\amd64
29+ swig -c++ -java -package supranational.blst -outdir supranational\blst -o blst_wrap.cpp ..\blst.swg
30+ javac supranational/blst/*.java
31+ java supranational/blst/blstJNI
32+ cl /nologo /MT /LD /O2 /W3 /wd4267 /D_CRT_SECURE_NO_WARNINGS /I "$env:JAVA_HOME\include" /I ..\ /I "$env:JAVA_HOME\include\win32" blst_wrap.cpp ..\..\blst.lib /link /OUT:supranational/blst/Windows/amd64/blst.dll
33+ - uses : actions/upload-artifact@v4
34+ with :
35+ name : blst.zip
36+ path : |
37+ bindings/java/supranational/blst
38+ !bindings/java/supranational/blst/*.class
39+
40+
Original file line number Diff line number Diff line change 4646 cmd : CC='gcc-9 -m32' CXX='g++-9 -m32' ./build.sh && mv supranational/blst/Linux/{amd64,x86}
4747 - platform : win32
4848 os : windows-2022
49- cmd : bash -c './build.sh -D__BLST_PORTABLE__'
49+ cmd : |
50+ cmd /c ..\..\build.bat
51+ mkdir supranational\blst\Windows\amd64
52+ dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
53+ swig -c++ -java -package supranational.blst -outdir supranational\blst -o blst_wrap.cpp ..\blst.swg
54+ cmd /c '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 && `
55+ cl /nologo /MT /LD /O2 /W3 /wd4267 /D_CRT_SECURE_NO_WARNINGS /I "$env:JAVA_HOME\include" /I ..\ /I "$env:JAVA_HOME\include\win32" blst_wrap.cpp ..\..\blst.lib /link /OUT:supranational/blst/Windows/amd64/blst.dll'
5056
5157 steps :
5258 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments