From 2f1117e53ec74cb263bf0e2ed191edd82d3e6bab Mon Sep 17 00:00:00 2001 From: Anton Litvinov Date: Thu, 23 Nov 2023 11:32:32 +0300 Subject: [PATCH] Add linux/arm64 build Signed-off-by: Anton Litvinov --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ddfa28b..1d38da9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,32 @@ on: - '*.*.*' jobs: + release-linux-armd64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 + + - name: Install cross-compilation tools + run: | + set -ex + sudo apt-get update + sudo apt-get install -y gcc-aarch64-linux-gnu + + - name: Build + run: | + go build -v -trimpath -ldflags "-s -w" -o bin/myst-launcher-cli.exe github.com/mysteriumnetwork/myst-launcher/cmd/app-cli + env: + GOARCH: arm64 + GOOS: linux + CC: aarch64-linux-gnu-gcc + CGO_ENABLED: 1 + CC_FOR_TARGET: gcc-aarch64-linux-gnu + release-windows-amd64: runs-on: windows-2019 steps: