Skip to content

Commit

Permalink
Merge pull request #3238 from carstene1ns/github-maint
Browse files Browse the repository at this point in the history
Make our life on GitHub easier:
  • Loading branch information
carstene1ns authored Jun 11, 2024
2 parents 69a20d7 + 8ac8c16 commit 6e33041
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
labels:
- "Building"
#reviewers:
# - carstene1ns
commit-message:
prefix: "CI"
17 changes: 17 additions & 0 deletions .github/gcc_comment_matcher.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}
98 changes: 98 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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/** ]
27 changes: 27 additions & 0 deletions .github/workflows/pr_labels.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .github/workflows/stable-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`)"
Expand Down

0 comments on commit 6e33041

Please sign in to comment.