Skip to content

Commit 8caa265

Browse files
committed
update
1 parent 20f6234 commit 8caa265

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

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

+10-14
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,19 @@ env:
1111

1212
jobs:
1313
build:
14-
name: Build on ${{ matrix.os }}
14+
name: Build for ${{ matrix.target }}
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
1818
include:
1919
- os: ubuntu-latest
2020
target: x86_64-unknown-linux-gnu
21-
use_xwin: false
22-
- os: windows-latest
23-
target: x86_64-pc-windows-gnu
24-
use_xwin: true
25-
- os: macos-latest
21+
- os: ubuntu-latest
2622
target: aarch64-apple-darwin
27-
use_xwin: false
28-
- os: macos-latest
23+
- os: ubuntu-latest
2924
target: x86_64-apple-darwin
30-
use_xwin: false
25+
- os: windows-latest
26+
target: x86_64-pc-windows-gnu
3127

3228
steps:
3329
- uses: actions/checkout@v3
@@ -43,25 +39,25 @@ jobs:
4339
uses: taiki-e/install-action@cargo-binstall
4440

4541
- name: Install Zig
46-
if: ${{ !matrix.use_xwin }}
42+
if: ${{ matrix.os != 'windows-latest' }}
4743
uses: goto-bus-stop/setup-zig@v2
4844
with:
4945
version: 0.10.1
5046

5147
- name: Install cargo-zigbuild
52-
if: ${{ !matrix.use_xwin }}
48+
if: ${{ matrix.os != 'windows-latest' }}
5349
run: cargo binstall --no-confirm cargo-zigbuild
5450

5551
- name: Install cargo-xwin
56-
if: ${{ matrix.use_xwin }}
52+
if: ${{ matrix.os == 'windows-latest' }}
5753
run: cargo binstall --no-confirm cargo-xwin
5854

5955
- name: Build with cargo-zigbuild
60-
if: ${{ !matrix.use_xwin }}
56+
if: ${{ matrix.os != 'windows-latest' }}
6157
run: cargo zigbuild --target ${{ matrix.target }} --release
6258

6359
- name: Build with cargo-xwin
64-
if: ${{ matrix.use_xwin }}
60+
if: ${{ matrix.os == 'windows-latest' }}
6561
run: cargo xwin build --target ${{ matrix.target }} --release
6662

6763
- name: Upload artifacts

0 commit comments

Comments
 (0)