From 4bfb95eec768e89d0ed9153b79f11f1aa091dadf Mon Sep 17 00:00:00 2001 From: Rongmario Date: Sat, 10 Feb 2024 02:03:25 +0000 Subject: [PATCH] Windows x64, x86, arm64 --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef68889..75fb8a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,6 +31,32 @@ jobs: - name: Link for x86 run: gcc -m32 -shared -fPIC -o output/${{ env.LIB_NAME }}_x86.so ${{ env.PATH_TO_CODE }}_x86.o -lc + - name: Upload Natives + uses: actions/upload-artifact@v3 + with: + name: native + path: output/ + + windows_compile: + strategy: + matrix: + arch: [[x64, x64], [x86, x86], [amd64_arm64, arm64]] + runs-on: windows-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Make Directory + run: mkdir output + + - name: Install MSVC + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.arch[0] }} + + - name: Compile and Link for ${{ matrix.arch[1] }} + run: cl.exe -LD -I$JAVA_HOME/include -I$JAVA_HOME/include/win32 ${{ env.PATH_TO_CODE }}.c -link -out:output/${{ env.LIB_NAME }}_${{ matrix.arch[1] }}.dll + - name: Upload Natives uses: actions/upload-artifact@v3 with: