From 0e7bc290f895e05dea5367e1cd8c289a3bdd5016 Mon Sep 17 00:00:00 2001 From: rvalue Date: Wed, 13 Oct 2021 22:55:32 +0800 Subject: [PATCH] Fix build on riscv64 (#542) Add riscv64 build tag for udp_linux_64.go to fix build on riscv64 Co-authored-by: Wade Simmons --- .github/workflows/release.yml | 10 ++++++++++ CHANGELOG.md | 1 + Makefile | 3 ++- udp_linux_64.go | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index baea456..b415905 100644 --- a/.github/workflows/release.yml +++ b/.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/upload-release-asset@v1.0.1 + 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/upload-release-asset@v1.0.1 env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b4c65..2230efb 100644 --- a/CHANGELOG.md +++ b/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 diff --git a/Makefile b/Makefile index 89cf5e3..2a488b5 100644 --- a/Makefile +++ b/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 \ diff --git a/udp_linux_64.go b/udp_linux_64.go index 3ed1c2e..1639a88 100644 --- a/udp_linux_64.go +++ b/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