From a18fe3c1e687cb7879f00323a93c476b3a8b6e1b Mon Sep 17 00:00:00 2001 From: matu6968 Date: Sun, 29 Sep 2024 12:55:58 +0200 Subject: [PATCH] add Mac OS target --- .gitea/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a6e2809..7f515a6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -46,6 +46,18 @@ jobs: go mod tidy GOARCH=arm64 go build -o s3-client_linux.arm64 + - name: Build Go binary for Mac OS (x86_64) + if: env.main_go_modified == 'true' + run: | + go mod tidy + GOOS=darwin GOARCH=386 go build -o s3-client_linux.x86 + + - name: Build Go binary for Mac OS (ARM64) + if: env.main_go_modified == 'true' + run: | + go mod tidy + GOOS=darwin GOARCH=arm64 go build -o s3-client_linux.arm64 + - name: Build Go binary for Linux (ARMv7) if: env.main_go_modified == 'true' run: |