Skip to content

Commit 6e33041

Browse files
authored
Merge pull request EasyRPG#3238 from carstene1ns/github-maint
Make our life on GitHub easier:
2 parents 69a20d7 + 8ac8c16 commit 6e33041

File tree

5 files changed

+157
-0
lines changed

5 files changed

+157
-0
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
labels:
8+
- "Building"
9+
#reviewers:
10+
# - carstene1ns
11+
commit-message:
12+
prefix: "CI"

.github/gcc_comment_matcher.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "gcc-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"severity": 4,
12+
"message": 5
13+
}
14+
]
15+
}
16+
]
17+
}

.github/labeler.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
#
2+
# See https://github.com/actions/labeler
3+
# and workflows/pr_labels.yml for reference
4+
#
5+
6+
Building:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- .github/**
10+
- CMakeLists.txt
11+
- builds/**
12+
- '!builds/android/app/**'
13+
- Makefile.am
14+
- configure.ac
15+
16+
Documentation:
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- docs/**
20+
- '**/*.md'
21+
- '**/*.adoc'
22+
- src/docmain.h
23+
- '**/Doxyfile*'
24+
- resources/unix/*.metainfo.xml
25+
26+
Tests:
27+
- changed-files:
28+
- any-glob-to-any-file: [ tests/** ]
29+
30+
Window/Scenes:
31+
- changed-files:
32+
- any-glob-to-any-file: [ src/**/window_*, src/**/scene_* ]
33+
34+
# misc
35+
36+
Audio:
37+
- changed-files:
38+
- any-glob-to-any-file: [ src/**/*audio* ]
39+
40+
FileFinder:
41+
- changed-files:
42+
- any-glob-to-any-file: [ src/**/filefinder*, src/**/filesystem* ]
43+
44+
Fonts:
45+
- changed-files:
46+
- any-glob-to-any-file:
47+
- resources/exfont.png
48+
- resources/ttyp0/**
49+
- resources/shinonome/**
50+
- resources/wenquanyi/**
51+
- src/**/*font*
52+
- src/generated/bitmapfont_*
53+
54+
MIDI:
55+
- changed-files:
56+
- any-glob-to-any-file: [ src/**/*midi* ]
57+
58+
# platforms
59+
60+
3DS:
61+
- changed-files:
62+
- any-glob-to-any-file: [ src/platform/3ds/**, resources/3ds/** ]
63+
64+
Android:
65+
- changed-files:
66+
- any-glob-to-any-file: [ src/platform/android/**, builds/android/app/** ]
67+
68+
Emscripten:
69+
- changed-files:
70+
- any-glob-to-any-file: [ src/platform/emscripten/**, resources/emscripten/** ]
71+
72+
libretro:
73+
- changed-files:
74+
- any-glob-to-any-file: [ src/platform/libretro/** ]
75+
76+
macOS:
77+
- changed-files:
78+
- any-glob-to-any-file: [ src/platform/macos/**, resources/macos/** ]
79+
80+
PSVita:
81+
- changed-files:
82+
- any-glob-to-any-file: [ src/platform/psvita/**, resources/psvita/** ]
83+
84+
Switch:
85+
- changed-files:
86+
- any-glob-to-any-file: [ src/platform/switch/**, resources/switch/** ]
87+
88+
Wii:
89+
- changed-files:
90+
- any-glob-to-any-file: [ src/platform/wii/**, resources/wii/** ]
91+
92+
WiiU:
93+
- changed-files:
94+
- any-glob-to-any-file: [ src/platform/wiiu/**, resources/wiiu/** ]
95+
96+
Win32:
97+
- changed-files:
98+
- any-glob-to-any-file: [ src/platform/windows/**, resources/windows/** ]

.github/workflows/pr_labels.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Label Pull Requests"
2+
on:
3+
pull_request_target:
4+
types: [opened, ready_for_review]
5+
6+
jobs:
7+
update:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Clone repository
16+
uses: actions/checkout@v4
17+
with:
18+
# pull_request_target is run under forks, use main repo source
19+
fetch-depth: 0
20+
repository: EasyRPG/Player
21+
ref: master
22+
23+
- name: Update labels
24+
uses: actions/labeler@v5
25+
with:
26+
sync-labels: true
27+
dot: true

.github/workflows/stable-compilation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
with:
5858
ref: ${{ github.event.inputs.git-ref }}
5959

60+
- name: Use gcc problem matcher
61+
run: echo "::add-matcher::.github/gcc_comment_matcher.json"
62+
6063
- name: Compile
6164
run: |
6265
VER="(GA, `date +%Y-%m-%d`)"

0 commit comments

Comments
 (0)