diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/label-issues.yml | 86 | ||||
| -rw-r--r-- | .github/workflows/release-binaries.yml | 8 |
2 files changed, 94 insertions, 0 deletions
diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml new file mode 100644 index 0000000000..4f8c70ee3a --- /dev/null +++ b/.github/workflows/label-issues.yml @@ -0,0 +1,86 @@ +name: Label issues from form +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + script: | + const body = context.payload.issue.body || ""; + + // Parse "### Title\n\nanswer" sections into a map + const sections = {}; + body.split(/^### /m).slice(1).forEach((block) => { + const [title, ...rest] = block.split("\n"); + sections[title.trim()] = rest.join("\n").trim(); + }); + const get = (k) => { + const v = sections[k]; + return v && v !== "_No response_" ? v : null; + }; + + const gameLabels = { + "Mario Kart World": "Mario Kart", + "Donkey Kong Bananza": "DKB", + "Fire Emblem": "Fire Emblem", + "Splatoon Raiders": "Splatoon Raiders", + "Pokopia": "Pokopia", + "Hyrule Warriors": "Hyrule Warriors", + "Welcome Tour": "Welcome Tour", + }; + + const labels = new Set(); + + // Game + const game = get("Game"); + if (game && gameLabels[game]) labels.add(gameLabels[game]); + + // GPU vendor + const gpu = get("Graphics card"); + if (gpu) { + if (/nvidia/i.test(gpu)) labels.add("NVIDIA"); + else if (/amd/i.test(gpu)) labels.add("AMD"); + else if (/intel/i.test(gpu)) labels.add("INTEL"); + } + + // OS + const os = get("Operating system"); + if (os) { + if (/windows/i.test(os)) labels.add("windows"); + else if (/linux/i.test(os)) labels.add("linux"); + else if (/macos/i.test(os)) labels.add("MacOS"); + } + + // Regression + if (/- \[x\] This is a regression/i.test(sections["Regression"] || "")) { + labels.add("regression"); + } + if (get("Last known working build")) labels.add("needs-bisect"); + + // Crash without log + const isCrash = (context.payload.issue.labels || []).some( + (l) => l.name.toLowerCase() === "crash" + ); + if (isCrash && !get("Log / crash dump")) { + labels.add("needs-info"); + await github.rest.issues.createComment({ + ...context.repo, + issue_number: context.issue.number, + body: "Thanks for the report! Please attach the log / crash dump so we can investigate.", + }); + } + + if (labels.size) { + await github.rest.issues.addLabels({ + ...context.repo, + issue_number: context.issue.number, + labels: [...labels], + }); + } diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index db663a98a1..746e352c17 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -15,6 +15,9 @@ on: # A binary only changes when build inputs change; docs-only pushes skip the build. paths: - "src/**" + # Test-only changes cannot change a binary: the build configures with BUILD_TESTING=OFF and + # YUZU_TESTS=OFF below, so a push that only touches src/tests has nothing to rebuild. + - "!src/tests/**" - "CMakeLists.txt" - "CMakeModules/**" - "externals/**" @@ -178,6 +181,11 @@ jobs: cp dist/Eglantine.png "$icon" export APPIMAGE_EXTRACT_AND_RUN=1 export QMAKE="$QT_ROOT_DIR/bin/qmake" + # Include Wayland platform plugins and their graphics/shell integrations. + export EXTRA_QT_MODULES=waylandcompositor + export EXTRA_PLATFORM_PLUGINS='libqwayland-egl.so;libqwayland-generic.so' + # Embedded in the AppImage metadata; matches the release tag (build-N) plus the commit. + export LDAI_VERSION="build-${GITHUB_RUN_NUMBER}-${GITHUB_SHA::7}" export LDAI_OUTPUT="eglantine-${GITHUB_SHA}-${PLATFORM}.AppImage" export OUTPUT="$LDAI_OUTPUT" export ARCH=x86_64 |
