name: Build binaries
on:
push:
paths:
# - '.gitea/workflows/build.yaml'
- '*.go'
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Go Build Linux x64
run: |
GOOS=linux GOARCH=amd64 \
go build \
-ldflags="-s -w" \
-o linux-amd64
- name: Go Build Linux arm64
GOOS=linux GOARCH=arm64 \
-o linux-arm64
- name: Go Build Windows x64
GOOS=windows GOARCH=amd64 \
-o windows-amd64.exe
- name: Go Build Windows arm64
GOOS=windows GOARCH=arm64 \
-o windows-arm64.exe
- uses: EndBug/add-and-commit@v9
default_author: github_actions
message: Recompiled binaries