Skip to content

Commit fd14d0b

Browse files
committed
add mingw
1 parent 2dd77c1 commit fd14d0b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/scripts/compile_all_targets_java_new.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ case $TARGET in
2929
$PROJECT_ROOT/scripts/compile_to_native.sh Darwin x86_64 $LIB_NAME $LIB_TYPE $OUT_DIR zigbuild
3030
;;
3131
"x86_64-pc-windows-gnu")
32-
$PROJECT_ROOT/scripts/compile_to_native.sh Windows x86_64 $LIB_NAME $LIB_TYPE $OUT_DIR
32+
$PROJECT_ROOT/scripts/compile_to_native.sh Windows x86_64 $LIB_NAME $LIB_TYPE $OUT_DIR zigbuild
3333
;;
3434
*)
3535
echo "Unsupported target: $TARGET"

.github/workflows/test-java-bindings-new.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- target: x86_64-apple-darwin
2525
os: ubuntu-latest
2626
- target: x86_64-pc-windows-gnu
27-
os: windows-latest
27+
os: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v3
3030
- name: Install Rust
@@ -41,9 +41,11 @@ jobs:
4141
version: 0.10.1
4242
- name: Install cargo-zigbuild
4343
run: cargo binstall --no-confirm cargo-zigbuild
44-
# - name: Set up MinGW (for x86_64 Windows)
45-
# if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
46-
# run: sudo apt-get install gcc-mingw-w64-x86-64 -y
44+
45+
- name: Set up MinGW (for x86_64 Windows)
46+
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
47+
run: sudo apt-get install gcc-mingw-w64-x86-64 -y
48+
4749
- name: Run compile script
4850
run: |
4951
chmod +x .github/scripts/compile_all_targets_java_new.sh

0 commit comments

Comments
 (0)