diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..202e28ba0b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: monthly + labels: + - "Building" + #reviewers: + # - carstene1ns + commit-message: + prefix: "CI" diff --git a/.github/gcc_comment_matcher.json b/.github/gcc_comment_matcher.json new file mode 100644 index 0000000000..81995b4590 --- /dev/null +++ b/.github/gcc_comment_matcher.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "gcc-problem-matcher", + "pattern": [ + { + "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + } + ] +} diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..972b28d350 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,98 @@ +# +# See https://github.com/actions/labeler +# and workflows/pr_labels.yml for reference +# + +Building: +- changed-files: + - any-glob-to-any-file: + - .github/** + - CMakeLists.txt + - builds/** + - '!builds/android/app/**' + - Makefile.am + - configure.ac + +Documentation: +- changed-files: + - any-glob-to-any-file: + - docs/** + - '**/*.md' + - '**/*.adoc' + - src/docmain.h + - '**/Doxyfile*' + - resources/unix/*.metainfo.xml + +Tests: +- changed-files: + - any-glob-to-any-file: [ tests/** ] + +Window/Scenes: +- changed-files: + - any-glob-to-any-file: [ src/**/window_*, src/**/scene_* ] + +# misc + +Audio: +- changed-files: + - any-glob-to-any-file: [ src/**/*audio* ] + +FileFinder: +- changed-files: + - any-glob-to-any-file: [ src/**/filefinder*, src/**/filesystem* ] + +Fonts: +- changed-files: + - any-glob-to-any-file: + - resources/exfont.png + - resources/ttyp0/** + - resources/shinonome/** + - resources/wenquanyi/** + - src/**/*font* + - src/generated/bitmapfont_* + +MIDI: +- changed-files: + - any-glob-to-any-file: [ src/**/*midi* ] + +# platforms + +3DS: +- changed-files: + - any-glob-to-any-file: [ src/platform/3ds/**, resources/3ds/** ] + +Android: +- changed-files: + - any-glob-to-any-file: [ src/platform/android/**, builds/android/app/** ] + +Emscripten: +- changed-files: + - any-glob-to-any-file: [ src/platform/emscripten/**, resources/emscripten/** ] + +libretro: +- changed-files: + - any-glob-to-any-file: [ src/platform/libretro/** ] + +macOS: +- changed-files: + - any-glob-to-any-file: [ src/platform/macos/**, resources/macos/** ] + +PSVita: +- changed-files: + - any-glob-to-any-file: [ src/platform/psvita/**, resources/psvita/** ] + +Switch: +- changed-files: + - any-glob-to-any-file: [ src/platform/switch/**, resources/switch/** ] + +Wii: +- changed-files: + - any-glob-to-any-file: [ src/platform/wii/**, resources/wii/** ] + +WiiU: +- changed-files: + - any-glob-to-any-file: [ src/platform/wiiu/**, resources/wiiu/** ] + +Win32: +- changed-files: + - any-glob-to-any-file: [ src/platform/windows/**, resources/windows/** ] diff --git a/.github/workflows/pr_labels.yml b/.github/workflows/pr_labels.yml new file mode 100644 index 0000000000..e4d84c4499 --- /dev/null +++ b/.github/workflows/pr_labels.yml @@ -0,0 +1,27 @@ +name: "Label Pull Requests" +on: + pull_request_target: + types: [opened, ready_for_review] + +jobs: + update: + permissions: + contents: read + pull-requests: write + + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v4 + with: + # pull_request_target is run under forks, use main repo source + fetch-depth: 0 + repository: EasyRPG/Player + ref: master + + - name: Update labels + uses: actions/labeler@v5 + with: + sync-labels: true + dot: true diff --git a/.github/workflows/stable-compilation.yml b/.github/workflows/stable-compilation.yml index fb0e08d858..53908fec3f 100644 --- a/.github/workflows/stable-compilation.yml +++ b/.github/workflows/stable-compilation.yml @@ -57,6 +57,9 @@ jobs: with: ref: ${{ github.event.inputs.git-ref }} + - name: Use gcc problem matcher + run: echo "::add-matcher::.github/gcc_comment_matcher.json" + - name: Compile run: | VER="(GA, `date +%Y-%m-%d`)"