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

47 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-10-16 21:54:52 -04:00
name: Build binaries
on:
push:
paths:
2023-12-09 07:57:02 -05:00
# - '.gitea/workflows/build.yaml'
2023-10-16 21:54:52 -04:00
- '*.go'
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
2023-10-16 21:54:52 -04:00
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" \
2023-10-16 21:59:44 -04:00
-o windows-amd64.exe
2023-10-16 21:54:52 -04:00
- name: Go Build Windows arm64
run: |
GOOS=windows GOARCH=arm64 \
go build \
-ldflags="-s -w" \
2023-10-16 21:59:44 -04:00
-o windows-arm64.exe
2023-10-16 21:54:52 -04:00
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: Recompiled binaries