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

Alanxtl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3928efaa8 chore(CI): add riscv build ci for pixiu (#1005)
3928efaa8 is described below

commit 3928efaa874659694c6f3d2b19b700d2311350ae
Author: Xuetao Li <[email protected]>
AuthorDate: Fri Jul 17 12:30:51 2026 +0000

    chore(CI): add riscv build ci for pixiu (#1005)
    
    * add
    
    * add
    
    * Add wasm build tags to exclude Windows
---
 .github/workflows/riscv-build.yml | 65 +++++++++++++++++++++++++++++++++++++++
 pkg/wasm/key.go                   |  2 ++
 pkg/wasm/manager.go               |  2 ++
 pkg/wasm/service.go               |  2 ++
 pkg/wasm/utils.go                 |  2 ++
 5 files changed, 73 insertions(+)

diff --git a/.github/workflows/riscv-build.yml 
b/.github/workflows/riscv-build.yml
new file mode 100644
index 000000000..e2c52cdb5
--- /dev/null
+++ b/.github/workflows/riscv-build.yml
@@ -0,0 +1,65 @@
+#
+# 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: RISC-V Build
+
+on:
+  push:
+    branches:
+      - main
+      - 'release-*'
+      - 'feature-*'
+  pull_request:
+    branches:
+      - '*'
+
+permissions:
+  contents: read
+
+jobs:
+  RISC-V-Build:
+    name: RISC-V Build (linux/riscv64)
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v7
+
+      - name: Setup Go
+        uses: actions/setup-go@v6
+        with:
+          go-version-file: go.mod
+
+      - name: Cache dependencies
+        # ref: 
https://github.com/actions/cache/blob/main/examples.md#go---module
+        uses: actions/cache@v6
+        with:
+          # Cache, works only on Linux
+          path: |
+            ~/.cache/go-build
+            ~/go/pkg/mod
+          # Cache key
+          key: ${{ runner.os }}-riscv64-go-${{ hashFiles('**/go.sum') }}
+          # An ordered list of keys to use for restoring the cache if no cache 
hit occurred for key
+          restore-keys: |
+            ${{ runner.os }}-riscv64-go-
+
+      - name: Build for linux/riscv64
+        run: |
+          GOOS=linux GOARCH=riscv64 CGO_ENABLED=0 go build ./...
\ No newline at end of file
diff --git a/pkg/wasm/key.go b/pkg/wasm/key.go
index fda990702..67ca2e42e 100644
--- a/pkg/wasm/key.go
+++ b/pkg/wasm/key.go
@@ -1,3 +1,5 @@
+//go:build wasm && !windows
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
diff --git a/pkg/wasm/manager.go b/pkg/wasm/manager.go
index fe83af8d2..ee4331ffb 100644
--- a/pkg/wasm/manager.go
+++ b/pkg/wasm/manager.go
@@ -1,3 +1,5 @@
+//go:build wasm && !windows
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
diff --git a/pkg/wasm/service.go b/pkg/wasm/service.go
index dbf9428eb..85dc913d0 100644
--- a/pkg/wasm/service.go
+++ b/pkg/wasm/service.go
@@ -1,3 +1,5 @@
+//go:build wasm && !windows
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
diff --git a/pkg/wasm/utils.go b/pkg/wasm/utils.go
index ea17308c3..86c709727 100644
--- a/pkg/wasm/utils.go
+++ b/pkg/wasm/utils.go
@@ -1,3 +1,5 @@
+//go:build wasm && !windows
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with

Reply via email to