Kaynağa Gözat

Fix build on riscv64 (#542)

Add riscv64 build tag for udp_linux_64.go to fix build on riscv64

Co-authored-by: Wade Simmons <[email protected]>
rvalue 3 yıl önce
ebeveyn
işleme
0e7bc290f8
4 değiştirilmiş dosya ile 14 ekleme ve 2 silme
  1. 10 0
      .github/workflows/release.yml
  2. 1 0
      CHANGELOG.md
  3. 2 1
      Makefile
  4. 1 1
      udp_linux_64.go

+ 10 - 0
.github/workflows/release.yml

@@ -300,6 +300,16 @@ jobs:
           asset_name: nebula-linux-mips-softfloat.tar.gz
           asset_content_type: application/gzip
 
+      - name: Upload linux-riscv64
+        uses: actions/[email protected]
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          upload_url: ${{ steps.create_release.outputs.upload_url }}
+          asset_path: ./linux-latest/nebula-linux-riscv64.tar.gz
+          asset_name: nebula-linux-riscv64.tar.gz
+          asset_content_type: application/gzip
+
       - name: Upload freebsd-amd64
         uses: actions/[email protected]
         env:

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Added
 
 - SSH `print-cert` has a new `-raw` flag to get the PEM representation of a certificate. (#483)
+- New build architecture: Linux `riscv64`. (#542)
 
 ### Fixed
 

+ 2 - 1
Makefile

@@ -39,7 +39,8 @@ ALL_LINUX = linux-amd64 \
 	linux-mipsle \
 	linux-mips64 \
 	linux-mips64le \
-	linux-mips-softfloat
+	linux-mips-softfloat \
+	linux-riscv64
 
 ALL = $(ALL_LINUX) \
 	darwin-amd64 \

+ 1 - 1
udp_linux_64.go

@@ -1,5 +1,5 @@
 // +build linux
-// +build amd64 arm64 ppc64 ppc64le mips64 mips64le s390x
+// +build amd64 arm64 ppc64 ppc64le mips64 mips64le s390x riscv64
 // +build !android
 // +build !e2e_testing