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

@@ -73,3 +73,25 @@ This project uses Go **build tags** to support multiple platforms from the same
### Pro Tip: VS Code Remote - WSL
For the best experience when working on Linux features from Windows, use the **WSL extension**. Open VS Code inside your WSL environment (`code .` from the WSL terminal). This allows `gopls` to run directly in Linux, where all system headers and libraries are natively available.
## 🤖 Gitea Actions (CI/CD)
El archivo `.gitea/workflows/build-windows.yml` automatiza la compilación en cada push.
### Cómo usar tu propio Windows como Runner
Si tu Gitea no tiene runners públicos, puedes convertir tu propia máquina Windows en uno:
1. **Descarga `act_runner`**: Descarga el binario oficial de [Gitea Actions Runner](https://gitea.com/gitea/act_runner/releases).
2. **Registro**:
- Ve a tu instancia de Gitea -> Administración del Sitio -> Actions -> Runners.
- Copia el **Registration Token**.
- Ejecuta: `./act_runner register`
- Introduce la URL de tu Gitea y el token.
- En **labels**, asegúrate de poner `windows-latest:host`.
3. **Ejecución**:
- Lanza el runner: `./act_runner daemon`.
- Ahora, cualquier push lanzará la build en tu PC de forma automática.
> [!TIP]
> El workflow usa **MSYS2** automáticamente para instalar `opus` y `portaudio` en el entorno temporal de la build, así que no necesitas configurar nada extra en el sistema del runner.