From 32383e6a375f301278faa8c70ab495ce26415da8 Mon Sep 17 00:00:00 2001 From: mattman107 <mathoman@ymail.com> Date: Sat, 25 Jan 2025 22:53:19 -0500 Subject: [PATCH] remove build.sh --- .github/workflows/build-app.yml | 14 +++++++++----- build.sh | 9 --------- 2 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 build.sh diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index bd42831..6ca1db4 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -3,7 +3,7 @@ name: Build App on: push: branches: - - main + - autobuild4 jobs: build: @@ -13,7 +13,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: main + ref: autobuild4 - name: Setup Go uses: actions/setup-go@v5 @@ -25,8 +25,12 @@ jobs: - name: Build run: | - chmod +x ./build.sh - ./build.sh + platforms=("windows/amd64" "linux/amd64" "darwin/amd64" "darwin/arm64" "linux/arm64" "windows/arm64") + for platform in "${platforms[@]}"; do + GOOS=${platform%/*} + GOARCH=${platform#*/} + env GOOS=$GOOS GOARCH=$GOARCH go build -o ./bin/anchor-$GOOS-$GOARCH . + done - name: Upload builds uses: svenstaro/upload-release-action@v2 @@ -35,4 +39,4 @@ jobs: file: ./bin/anchor-* file_glob: true tag: ${{ github.ref }} - target_commit: main \ No newline at end of file + target_commit: autobuild4 \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100644 index 0f712ca..0000000 --- a/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -#build for all platforms -platforms=("windows/amd64" "linux/amd64" "darwin/amd64" "darwin/arm64" "linux/arm64" "windows/arm64") -for platform in "${platforms[@]}"; do - GOOS=${platform%/*} - GOARCH=${platform#*/} - env GOOS=$GOOS GOARCH=$GOARCH go build -o ./bin/anchor-$GOOS-$GOARCH . -done \ No newline at end of file