This is an automated email from the ASF dual-hosted git repository.

sciabarracom pushed a commit to branch build-local
in repository https://gitbox.apache.org/repos/asf/openserverless-build.git


The following commit(s) were added to refs/heads/build-local by this push:
     new 8d7dc8b  Use system protoc for ARM scheduler builds
8d7dc8b is described below

commit 8d7dc8b99075df7b15031e332c9a9bdea99162b4
Author: Michele Sciabarra <[email protected]>
AuthorDate: Wed Jul 1 07:48:01 2026 +0000

    Use system protoc for ARM scheduler builds
---
 openwhisk/core/scheduler/build.gradle | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/openwhisk/core/scheduler/build.gradle 
b/openwhisk/core/scheduler/build.gradle
index ae5068c..b28ff6e 100644
--- a/openwhisk/core/scheduler/build.gradle
+++ b/openwhisk/core/scheduler/build.gradle
@@ -22,6 +22,19 @@ apply plugin: 'maven'
 apply plugin: 'org.scoverage'
 apply plugin: 'com.lightbend.akka.grpc.gradle'
 
+def buildArch = System.getProperty("os.arch")
+if (buildArch == "aarch64" || buildArch == "arm64") {
+    def protocPath = ["/usr/bin/protoc", "/usr/local/bin/protoc"].find { 
file(it).exists() }
+    if (!protocPath) {
+        throw new GradleException("ARM builds need protoc installed in the 
build environment")
+    }
+    protobuf {
+        protoc {
+            path = protocPath
+        }
+    }
+}
+
 ext.dockerImageName = 'scheduler'
 apply from: '../../gradle/docker.gradle'
 distDocker.dependsOn ':common:scala:distDocker', 'distTar'

Reply via email to