diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-15 17:51:40 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-01-15 18:07:07 +0300 |
| commit | fc56a1acac52e5f889d5141b78be54e21da0ae12 (patch) | |
| tree | 3d89f918fa145f995173fe2cc1ec314c2fa0d962 | |
| parent | 679dc69f6e9764060747aa48e885b8a651f52b04 (diff) | |
fix syntax error - workflow
| -rw-r--r-- | .github/workflows/release.yml | 6 |
1 files 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 |
