ci: add Linux and Windows build workflow for Gitea Actions
Some checks failed
Build Windows / build-windows (push) Failing after 5m13s
Build Linux / build-linux (push) Failing after 6m41s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-17 02:15:39 +01:00
parent b6224cd2fd
commit 952552302a
3 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
name: Build Windows
on: [push]
jobs:
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21' # Adjust to your version
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-opus
mingw-w64-x86_64-portaudio
pkg-config
- name: Build TUI
run: |
# Ensure Go can find the C libraries via pkg-config
export CGO_ENABLED=1
go build -o dist/tui_windows.exe ./cmd/tui
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: tui-windows-binary
path: dist/tui_windows.exe