Skip to content

Commit 7a6b00c

Browse files
committed
Add automerge workflow files
1 parent 2fabb9f commit 7a6b00c

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: automerge
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
with:
19+
submodules: recursive
20+
fetch-depth: 0
21+
persist-credentials: true
22+
23+
- name: Merge AzerothCore
24+
run: |
25+
git status
26+
git config user.name "github-actions[bot]"
27+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
28+
git remote add AC https://github.com/azerothcore/azerothcore-wotlk.git
29+
git fetch AC master
30+
git merge -m "Merge AzerothCore 3.3.5 to ElunaAzerothcore [skip ci]" AC/master
31+
git status
32+
33+
- name: Install dependencies
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -yq libboost-all-dev g++-11
37+
sudo update-alternatives \
38+
--install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
39+
--slave /usr/bin/g++ g++ /usr/bin/g++-11
40+
41+
- name: Configure build
42+
run: |
43+
mkdir -p bin
44+
cd bin
45+
cmake ../ \
46+
-DWITH_WARNINGS="ON" \
47+
-DUSE_COREPCH="ON" \
48+
-DUSE_SCRIPTPCH="ON" \
49+
-DAPPS_BUILD="all" \
50+
-DSCRIPTS="static" \
51+
-DCMAKE_BUILD_TYPE="Debug" \
52+
-DCMAKE_C_FLAGS="-Werror" \
53+
-DCMAKE_CXX_FLAGS="-Werror" \
54+
-DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" \
55+
-DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" \
56+
-DCMAKE_INSTALL_PREFIX=check_install \
57+
-DBUILD_TESTING="ON"
58+
59+
- name: Build
60+
run: |
61+
cd bin
62+
make -j 4 -k
63+
make install
64+
65+
- name: Push changes
66+
run: |
67+
git push origin HEAD
68+
69+
create-diff:
70+
name: Create diff file
71+
needs: build
72+
uses: ./.github/workflows/create-diff.yml

.github/workflows/create-diff.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Create diff
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
create-diff:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
submodules: 'recursive'
14+
fetch-depth: 0
15+
- name: Create diff
16+
run: |
17+
git remote add AC https://github.com/azerothcore/azerothcore-wotlk.git
18+
git fetch AC master
19+
git diff AC/master > eluna.diff
20+
- name: Upload diff
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: eluna.diff
24+
path: |
25+
eluna.diff

0 commit comments

Comments
 (0)