Skip to content

Commit 80a7039

Browse files
committed
wip
1 parent 60280bd commit 80a7039

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish artifacts to Maven Central
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: Version
9+
default: 0.3.15
10+
11+
jobs:
12+
build-native:
13+
runs-on: windows-2022
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
repository: supranational/blst
19+
ref: v0.3.15
20+
- uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '11'
24+
- uses: egor-tensin/vs-shell@v2
25+
- name: Build native image
26+
run: |
27+
.\build.bat
28+
cd bindings\java
29+
mkdir supranational\blst
30+
swig -c++ -java -package supranational.blst -outdir supranational\blst -o blst_wrap.cpp ..\blst.swg
31+
cl /nologo /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:blst_wrap.dll
32+
dir

0 commit comments

Comments
 (0)