Skip to content

Commit eeb6193

Browse files
ci: test the windows arm64 natives on a native runner
The windows_arm64 lane uploads its classifier jar like the linux cross lanes. The native test job gains a windows-11-arm entry. The Microsoft JDK is the distribution that ships Windows aarch64 builds of JDK 17.
1 parent c3cc2e7 commit eeb6193

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
maven-username: ${{ secrets.MAVEN_USERNAME }}
4949
maven-password: ${{ secrets.MAVEN_TOKEN }}
5050

51+
- name: Upload natives for native testing
52+
if: matrix.platform.name == 'windows_arm64'
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: natives-${{ matrix.platform.name }}
56+
path: webrtc-jni/target/webrtc-java-*.jar
57+
if-no-files-found: error
58+
5159
build-linux:
5260
strategy:
5361
fail-fast: false
@@ -126,11 +134,17 @@ jobs:
126134
maven-password: ${{ secrets.MAVEN_TOKEN }}
127135

128136
test-natives:
129-
needs: build-linux
137+
needs: [build-windows, build-linux]
130138
strategy:
131139
fail-fast: false
132140
matrix:
133141
platform:
142+
- name: windows_arm64
143+
runs-on: windows-11-arm
144+
classifier: windows-aarch64
145+
profile: windows-aarch64
146+
java-distribution: microsoft
147+
java-architecture: aarch64
134148
- name: linux_arm64
135149
runs-on: ubuntu-22.04-arm
136150
classifier: linux-aarch64

0 commit comments

Comments
 (0)