Skip to content

Commit 6496af5

Browse files
committed
wip
1 parent 60280bd commit 6496af5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ jobs:
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+
swig -c++ -java -package supranational.blst -outdir supranational\blst -o blst_wrap.cpp ..\blst.swg
53+
cl /nologo /MT /LD /O2 /W3 /wd4267 /EHsc /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
5054
5155
steps:
5256
- uses: actions/checkout@v4
@@ -57,12 +61,14 @@ jobs:
5761
with:
5862
distribution: 'temurin'
5963
java-version: '11'
60-
- if: ${{ matrix.extra-packages }}
64+
- if: matrix.extra-packages != ''
6165
run: |
6266
sudo apt-get update
6367
sudo apt-get install -y ${{ matrix.extra-packages }}
64-
- if: ${{ matrix.brew-packages }}
68+
- if: matrix.brew-packages != ''
6569
run: brew install ${{ matrix.brew-packages }}
70+
- if: matrix.os == 'windows-2022'
71+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
6672
- name: Build native image
6773
run: |
6874
cd bindings/java

0 commit comments

Comments
 (0)