From 450a9f58f17530f084879b2de8470dbacca66b90 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Tue, 19 Sep 2023 22:58:39 +0200 Subject: [PATCH] github build: don't build arm for windows Dependencies (javafx and zstd) not available -/- --- .github/workflows/build.yml | 2 ++ build.gradle.kts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d451a8ea..5a8c0f82c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,10 +61,12 @@ jobs: path: build/libs/minosoft-fat-*-amd64-*.jar - name: Package aarch64 + if: ${{ !startsWith(matrix.os, 'windows') }} uses: gradle/gradle-build-action@v2 with: arguments: fatJar -Parchitecture=aarch64 - name: Upload aarch64 build + if: ${{ !startsWith(matrix.os, 'windows') }} uses: actions/upload-artifact@v3 with: name: 'minosoft-${{ matrix.os }}-aarch64' diff --git a/build.gradle.kts b/build.gradle.kts index e50f7f017..53381e76d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -126,6 +126,12 @@ when (os) { zstdNatives += "-x86" javafxNatives += "-x86" } + /* + Architectures.ARM -> { + lwjglNatives += "-arm64" + zstdNatives += "-amd64" // TODO: Windows on arm is not yet supported: https://github.com/luben/zstd-jni/issues/277 + } + */ else -> throw IllegalArgumentException("Can not determinate windows natives on $architecture") }