Renovate Bot
a8630c82e4
All checks were successful
Test binaries / Explore-Gitea-Actions (push) Successful in 18s
46 lines
1.1 KiB
YAML
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
|