Skip to content

Commit c9f1b8e

Browse files
committed
update
1 parent 8caa265 commit c9f1b8e

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

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

+10-17
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ env:
1212
jobs:
1313
build:
1414
name: Build for ${{ matrix.target }}
15-
runs-on: ${{ matrix.os }}
15+
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
include:
19-
- os: ubuntu-latest
20-
target: x86_64-unknown-linux-gnu
21-
- os: ubuntu-latest
22-
target: aarch64-apple-darwin
23-
- os: ubuntu-latest
24-
target: x86_64-apple-darwin
25-
- os: windows-latest
26-
target: x86_64-pc-windows-gnu
18+
target:
19+
- x86_64-unknown-linux-gnu
20+
- aarch64-apple-darwin
21+
- x86_64-apple-darwin
22+
- x86_64-pc-windows-gnu
2723

2824
steps:
2925
- uses: actions/checkout@v3
@@ -39,25 +35,22 @@ jobs:
3935
uses: taiki-e/install-action@cargo-binstall
4036

4137
- name: Install Zig
42-
if: ${{ matrix.os != 'windows-latest' }}
4338
uses: goto-bus-stop/setup-zig@v2
4439
with:
4540
version: 0.10.1
4641

4742
- name: Install cargo-zigbuild
48-
if: ${{ matrix.os != 'windows-latest' }}
4943
run: cargo binstall --no-confirm cargo-zigbuild
5044

5145
- name: Install cargo-xwin
52-
if: ${{ matrix.os == 'windows-latest' }}
5346
run: cargo binstall --no-confirm cargo-xwin
5447

55-
- name: Build with cargo-zigbuild
56-
if: ${{ matrix.os != 'windows-latest' }}
48+
- name: Build with cargo-zigbuild (non-Windows)
49+
if: ${{ !endsWith(matrix.target, 'windows-gnu') }}
5750
run: cargo zigbuild --target ${{ matrix.target }} --release
5851

59-
- name: Build with cargo-xwin
60-
if: ${{ matrix.os == 'windows-latest' }}
52+
- name: Build with cargo-xwin (Windows)
53+
if: ${{ endsWith(matrix.target, 'windows-gnu') }}
6154
run: cargo xwin build --target ${{ matrix.target }} --release
6255

6356
- name: Upload artifacts

0 commit comments

Comments
 (0)