mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Add -D__int64=int64_t flag to Java Windows build
This commit is contained in:
19
.github/workflows/build-windows-package.yml
vendored
19
.github/workflows/build-windows-package.yml
vendored
@@ -50,37 +50,28 @@ jobs:
|
|||||||
make install
|
make install
|
||||||
cp /mingw64/bin/*.dll /c/tmp-dist
|
cp /mingw64/bin/*.dll /c/tmp-dist
|
||||||
|
|
||||||
- name: Upload C runtime to artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: gf-${{ github.sha }}-windows
|
|
||||||
path: C:\tmp-dist\*
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
- name: Build Java bindings
|
- name: Build Java bindings
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
cd src/runtime/java
|
cd src/runtime/java
|
||||||
make \
|
make \
|
||||||
JNI_INCLUDES="-I \"/c/Program Files/Java/jdk8u275-b01/include\" -I \"/c/Program Files/Java/jdk8u275-b01/include/win32\" -I \"/mingw64/include\" " \
|
JNI_INCLUDES="-I \"/c/Program Files/Java/jdk8u275-b01/include\" -I \"/c/Program Files/Java/jdk8u275-b01/include/win32\" -I \"/mingw64/include\" " \
|
||||||
WINDOWS_LDFLAGS="-L\"/mingw64/lib\" -no-undefined"
|
WINDOWS_LDFLAGS="-L\"/mingw64/lib\" -no-undefined -D__int64=int64_t"
|
||||||
make install
|
make install
|
||||||
|
# cp ... /c/tmp-dist
|
||||||
|
|
||||||
# - name: Upload Java bindings to artifact
|
|
||||||
#
|
|
||||||
# - name: Build Python bindings
|
# - name: Build Python bindings
|
||||||
#
|
|
||||||
# - name: Upload Python bindings to artifact
|
|
||||||
|
|
||||||
- name: Build GF
|
- name: Build GF
|
||||||
run: |
|
run: |
|
||||||
cabal install --only-dependencies -fserver
|
cabal install --only-dependencies -fserver
|
||||||
cabal configure -fserver
|
cabal configure -fserver
|
||||||
cabal build
|
cabal build
|
||||||
|
copy dist\build\gf\gf.exe C:\tmp-dist
|
||||||
|
|
||||||
- name: Upload exe to artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: gf-${{ github.sha }}-windows
|
name: gf-${{ github.sha }}-windows
|
||||||
path: dist\build\gf\gf.exe
|
path: C:\tmp-dist\*
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
11
.github/workflows/windows-testing.yml
vendored
11
.github/workflows/windows-testing.yml
vendored
@@ -1,11 +0,0 @@
|
|||||||
name: Windows testing
|
|
||||||
|
|
||||||
on: push
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run:
|
|
||||||
runs-on: windows-2019
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- run: |
|
|
||||||
dir "C:\Program Files\Java\jdk8u275-b01\include"
|
|
||||||
Reference in New Issue
Block a user