diff --git a/.gitea/workflows/bench.yml b/.gitea/workflows/bench.yml index 27e6379..a441316 100644 --- a/.gitea/workflows/bench.yml +++ b/.gitea/workflows/bench.yml @@ -47,9 +47,3 @@ jobs: run: | set -o pipefail task test-integrity 2>&1 | tee -a bench_results.txt - - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh bench bench_results.txt diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3bb3e95..4bb1615 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -71,8 +71,9 @@ jobs: - name: Install system dependencies run: | + sudo dpkg --add-architecture i386 sudo apt-get update - sudo apt-get install -y patchelf libopusfile0 ffmpeg espeak-ng wine nsis zip rpm flatpak flatpak-builder elfutils + sudo apt-get install -y wine32:i386 wine64 patchelf libopusfile0 ffmpeg espeak-ng nsis zip rpm flatpak flatpak-builder elfutils flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo - name: Setup Task @@ -101,6 +102,8 @@ jobs: run: task build-flatpak - name: Build Electron App (Windows EXE and NSIS) + env: + WINEDEBUG: -all run: pnpm run dist:windows - name: Build Electron App (ZIP) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index dc30ade..5b40e00 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -37,12 +37,6 @@ jobs: set -o pipefail task lint 2>&1 | tee lint_results.txt - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh "Linting" lint_results.txt - build-frontend: runs-on: ubuntu-latest steps: @@ -71,12 +65,6 @@ jobs: env: VITE_APP_VERSION: ${{ steps.version.outputs.version }} - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh "Frontend Build" build_results.txt - test-backend: runs-on: ubuntu-latest steps: @@ -95,12 +83,6 @@ jobs: set -o pipefail task compile 2>&1 | tee compile_results.txt - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh "Backend Compilation" compile_results.txt - test-lang: runs-on: ubuntu-latest steps: @@ -127,9 +109,3 @@ jobs: run: | set -o pipefail task test-lang 2>&1 | tee lang_results.txt - - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh "Language Tests" lang_results.txt diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 48c3be7..9970e17 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -40,9 +40,3 @@ jobs: run: | set -o pipefail task test 2>&1 | tee test_results.txt - - - name: Post Results to PR - if: always() && github.event_name == 'pull_request' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: bash scripts/post_ci_results.sh "Tests" test_results.txt diff --git a/scripts/post_ci_results.sh b/scripts/post_ci_results.sh deleted file mode 100755 index 3b4e75e..0000000 --- a/scripts/post_ci_results.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/bin/bash -set -e - -if [ -z "$GITEA_TOKEN" ]; then - echo "GITEA_TOKEN is not set. Skipping PR comment." - exit 0 -fi - -if [ -f "$GITHUB_EVENT_PATH" ]; then - PR_NUMBER=$(jq -r '.pull_request.number' "$GITHUB_EVENT_PATH") -else - echo "GITHUB_EVENT_PATH not found. Skipping." - exit 0 -fi - -if [ "$PR_NUMBER" == "null" ] || [ -z "$PR_NUMBER" ]; then - echo "Not a pull request. Skipping." - exit 0 -fi - -REPORT_TYPE=$1 -INPUT_FILE=${2:-ci_results.txt} - -if [ ! -f "$INPUT_FILE" ]; then - echo "$INPUT_FILE not found. Nothing to post." - exit 0 -fi - -RUN_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" - -if [[ "$GITHUB_SERVER_URL" == *"github.com"* ]] || [ -z "$GITHUB_SERVER_URL" ]; then - GITHUB_SERVER_URL="https://git.quad4.io" - RUN_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" -fi - -sed -i 's/\x1b\[[0-9;]*[mK]//g' "$INPUT_FILE" - -if [ "$REPORT_TYPE" == "bench" ]; then - HEADER="### Benchmark Summary (automated report)" - RESULTS=$(sed -n '/==================== BENCHMARK SUMMARY ====================/,$p' "$INPUT_FILE" | grep -v "Progress:") -else - if grep -qiE "FAILED|error|❌|exit status|failure" "$INPUT_FILE"; then - HEADER="### ❌ CI Failure: $REPORT_TYPE" - if grep -q "short test summary info" "$INPUT_FILE"; then - RESULTS=$(sed -n '/=========================== short test summary info ============================/,$p' "$INPUT_FILE") - elif grep -qE "Found [0-9]* error" "$INPUT_FILE"; then - RESULTS=$(grep -A 20 -B 2 -E "Found [0-9]* error|::error|❌" "$INPUT_FILE") - else - RESULTS=$(grep -Ci 1 -E "FAILED|::error|❌|exit status|failure" "$INPUT_FILE" | tail -n 40) - fi - if [ -z "$RESULTS" ]; then - RESULTS=$(tail -n 30 "$INPUT_FILE") - fi - else - HEADER="### CI Status Report: $REPORT_TYPE" - RESULTS="All checks passed! ✅" - fi -fi - -if [ -z "$RESULTS" ]; then - RESULTS="No detailed results found in $INPUT_FILE. Check full logs." -fi - -MARKER="" - -NEW_SECTION=$(cat <