From ce6bba0510f7391daa7c2d7c9b33d199b586435a Mon Sep 17 00:00:00 2001 From: devsyncwrld Date: Tue, 1 Sep 2026 16:04:01 -0300 Subject: [PATCH] fix(ci): pulseaudio headers, and an ASCII release payload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux got past pipewire and stopped on pulse/pulseaudio.h — the module compiles both backends, so both sets of headers are needed. Windows reached the upload and Gitea rejected the release creation with HTTP 422, 'invalid UTF-8 within /name': the JSON body carried accented text and the Windows runner's shell mangles the encoding on the way out. The payload is now ASCII, with a comment saying why, so it does not get 'improved' back into Portuguese. --- .github/workflows/publish-gitea.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-gitea.yml b/.github/workflows/publish-gitea.yml index 022855f6..4cd9f086 100644 --- a/.github/workflows/publish-gitea.yml +++ b/.github/workflows/publish-gitea.yml @@ -44,7 +44,7 @@ jobs: libx11-dev libxtst-dev libxt-dev \ libxkbcommon-dev libxkbcommon-x11-dev libxkbfile-dev \ libxrandr-dev libxinerama-dev libx11-xcb-dev \ - libpipewire-0.3-dev + libpipewire-0.3-dev libpulse-dev - name: Setup pnpm uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 @@ -130,10 +130,13 @@ jobs: [ "$(code "$r")" = "200" ] && body "$r" | json_id || echo "" } + # O corpo do POST fica em ASCII de proposito: o shell do runner + # Windows corrompe UTF-8 na requisicao e o Gitea recusa com + # "invalid UTF-8 within /name" (HTTP 422). ID=$(find_release) if [ -z "$ID" ]; then R=$(api POST "/releases" -H 'Content-Type: application/json' \ - -d "{\"tag_name\":\"$TAG\",\"name\":\"Última versão\",\"target_commitish\":\"main\",\"body\":\"Instaladores publicados pelo CI.\"}") + -d "{\"tag_name\":\"$TAG\",\"name\":\"Latest build\",\"target_commitish\":\"main\",\"body\":\"Installers published automatically by CI.\"}") if [ "$(code "$R")" = "201" ]; then ID=$(body "$R" | json_id) echo "release criada: $ID"