From 9b71edc50c1a7b5f24cc5a139bd0e079db5ff4df Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 14 Sep 2026 14:26:44 +0200 Subject: [PATCH 1/4] [INFRA] Add riscv64 builds --- .../workflows/build_maven_java21_riscv.yml | 37 +++++++++++++++++++ .github/workflows/maven_test.yml | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_maven_java21_riscv.yml diff --git a/.github/workflows/build_maven_java21_riscv.yml b/.github/workflows/build_maven_java21_riscv.yml new file mode 100644 index 0000000000000..d60adaa55c883 --- /dev/null +++ b/.github/workflows/build_maven_java21_riscv.yml @@ -0,0 +1,37 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: "Build / Maven (Scala 2.13, JDK 21, RISC-V)" + +on: + schedule: + - cron: '0 15 */4 * *' + workflow_dispatch: + +jobs: + run-build: + permissions: + packages: write + name: Run + uses: ./.github/workflows/maven_test.yml + if: github.repository == 'apache/spark' + with: + java: 21 + os: ubuntu-24.04-riscv + arch: riscv64 diff --git a/.github/workflows/maven_test.yml b/.github/workflows/maven_test.yml index b3198e3cbc75f..e31c0cc083192 100644 --- a/.github/workflows/maven_test.yml +++ b/.github/workflows/maven_test.yml @@ -42,7 +42,7 @@ on: type: string default: ubuntu-latest arch: - description: The target architecture (x86, x64, arm64) of the Python interpreter. + description: The target architecture (x86, x64, arm64, riscv64) of the Python interpreter. required: false type: string default: x64 From 7ec2cb8cd23260b5edfd83260571ab543288583b Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 14 Sep 2026 14:28:45 +0200 Subject: [PATCH 2/4] {debug} Trigger on PR --- .github/workflows/build_maven_java21_riscv.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_maven_java21_riscv.yml b/.github/workflows/build_maven_java21_riscv.yml index d60adaa55c883..b37934263f620 100644 --- a/.github/workflows/build_maven_java21_riscv.yml +++ b/.github/workflows/build_maven_java21_riscv.yml @@ -22,6 +22,9 @@ name: "Build / Maven (Scala 2.13, JDK 21, RISC-V)" on: schedule: - cron: '0 15 */4 * *' + pull_request: + branches: + - master workflow_dispatch: jobs: @@ -30,7 +33,7 @@ jobs: packages: write name: Run uses: ./.github/workflows/maven_test.yml - if: github.repository == 'apache/spark' + # if: github.repository == 'apache/spark' with: java: 21 os: ubuntu-24.04-riscv From 1c49a13316c0339e39a563961c5ef74bb3c986af Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 14 Sep 2026 14:37:27 +0200 Subject: [PATCH 3/4] fixup! [INFRA] Add riscv64 builds --- .github/workflows/maven_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven_test.yml b/.github/workflows/maven_test.yml index e31c0cc083192..0ab70d8718629 100644 --- a/.github/workflows/maven_test.yml +++ b/.github/workflows/maven_test.yml @@ -101,7 +101,7 @@ jobs: - name: Install Java ${{ inputs.java }} uses: actions/setup-java@v6 with: - distribution: zulu + distribution: ${{ case(inputs.arch == 'riscv64', 'temurin', 'zulu') }} java-version: ${{ inputs.java }} - name: Build Spark with Maven shell: | @@ -245,7 +245,7 @@ jobs: - name: Install Java ${{ matrix.java }} uses: actions/setup-java@v6 with: - distribution: zulu + distribution: ${{ case(inputs.arch == 'riscv64', 'temurin', 'zulu') }} java-version: ${{ matrix.java }} - name: Install Python 3.12 uses: actions/setup-python@v7 From 38ba42e1c3628f016f81442eeaea425bf09baa92 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 14 Sep 2026 15:52:21 +0200 Subject: [PATCH 4/4] {debug} --- .github/workflows/maven_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven_test.yml b/.github/workflows/maven_test.yml index 0ab70d8718629..97df8abad9248 100644 --- a/.github/workflows/maven_test.yml +++ b/.github/workflows/maven_test.yml @@ -99,7 +99,7 @@ jobs: restore-keys: | maven-${{ runner.os }}-java${{ inputs.java }}- - name: Install Java ${{ inputs.java }} - uses: actions/setup-java@v6 + uses: actions/setup-java@v5 with: distribution: ${{ case(inputs.arch == 'riscv64', 'temurin', 'zulu') }} java-version: ${{ inputs.java }} @@ -243,7 +243,7 @@ jobs: restore-keys: | maven-${{ runner.os }}-java${{ matrix.java }}- - name: Install Java ${{ matrix.java }} - uses: actions/setup-java@v6 + uses: actions/setup-java@v5 with: distribution: ${{ case(inputs.arch == 'riscv64', 'temurin', 'zulu') }} java-version: ${{ matrix.java }}