From fc56a1acac52e5f889d5141b78be54e21da0ae12 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 15 Jan 2024 18:21:40 +0330 Subject: [PATCH] fix syntax error - workflow --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcd8f51a..91a7e093 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,9 +28,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - if [ "${{ matrix.platform }}" == "amd64" ]; then - # Add any amd64 specific dependencies here - elif [ "${{ matrix.platform }}" == "arm64" ]; then + if [ "${{ matrix.platform }}" == "arm64" ]; then sudo apt install gcc-aarch64-linux-gnu elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then sudo apt install gcc-arm-linux-gnueabihf @@ -42,8 +40,10 @@ jobs: export GOOS=linux export GOARCH=${{ matrix.platform }} if [ "${{ matrix.platform }}" == "arm64" ]; then + export GOARCH=arm64 export CC=aarch64-linux-gnu-gcc elif [ "${{ matrix.platform }}" == "armv7" ] || [ "${{ matrix.platform }}" == "armv6" ]; then + export GOARCH=arm export GOARM=7 export CC=arm-linux-gnueabihf-gcc fi