Update .gitea/workflows/build.yaml
All checks were successful
Release Version / build (push) Successful in 7s
All checks were successful
Release Version / build (push) Successful in 7s
This commit is contained in:
parent
5c518abcdc
commit
20c9b45561
|
@ -18,6 +18,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.23.1'
|
go-version: '1.23.1'
|
||||||
|
|
||||||
|
- name: Check if main.go was modified
|
||||||
|
id: check_main_go
|
||||||
|
run: |
|
||||||
|
git fetch origin main
|
||||||
|
if git diff --name-only HEAD origin/main | grep -q 'main.go'; then
|
||||||
|
echo "main_go_modified=true" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "main_go_modified=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build Go binary for Linux
|
- name: Build Go binary for Linux
|
||||||
if: env.main_go_modified == 'true'
|
if: env.main_go_modified == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
@ -40,7 +50,7 @@ jobs:
|
||||||
if: env.main_go_modified == 'true'
|
if: env.main_go_modified == 'true'
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
GOOS=darwin GOARCH=386 go build -o s3-client_darwin.x86_64.app
|
GOOS=darwin GOARCH=amd64 go build -o s3-client_darwin.x86_64.app
|
||||||
|
|
||||||
- name: Build Go binary for Mac OS (ARM64)
|
- name: Build Go binary for Mac OS (ARM64)
|
||||||
if: env.main_go_modified == 'true'
|
if: env.main_go_modified == 'true'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user