This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
release-action/.gitea/workflows/build.yaml
Renovate Bot a8630c82e4
All checks were successful
Test binaries / Explore-Gitea-Actions (push) Successful in 18s
chore(deps): update actions/setup-go action to v5
2023-12-09 13:38:48 +00:00

46 lines
1.1 KiB
YAML

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
run: |
GOOS=linux GOARCH=arm64 \
go build \
-ldflags="-s -w" \
-o linux-arm64
- name: Go Build Windows x64
run: |
GOOS=windows GOARCH=amd64 \
go build \
-ldflags="-s -w" \
-o windows-amd64.exe
- name: Go Build Windows arm64
run: |
GOOS=windows GOARCH=arm64 \
go build \
-ldflags="-s -w" \
-o windows-arm64.exe
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: Recompiled binaries