summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2023-11-26 17:27:40 +0100
committerGitHub <noreply@github.com>2023-11-26 17:27:40 +0100
commit4a25ac665de88f6944cc5f2df6d0a5a043866113 (patch)
tree4944f5e0443d4422846bf412cd0bc20236cce565 /.github
parentf7d7c4feb7a8f9c63bc4c94ebd48f1771d07958a (diff)
chore(CI): Make some changes (#17861)
* chore(CI): Make some changes. Less CI's maybe better... * pendingsql * FORK TEST - TO BE REVERTED * changes * test * fix * Revert "FORK TEST - TO BE REVERTED" This reverts commit 875bc281c5a355cce2ddd8015484e256dbc185cf. * rename workflow * rename workflow * rename workflow * rename workflow * I argue windows don't need dry runs * maybe mac wants to be alive. who knows. When do we drop mac support really...?
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_dbimport.yml49
-rw-r--r--.github/workflows/codestyle.yml5
-rw-r--r--.github/workflows/core-build-nopch.yml (renamed from .github/workflows/core_matrix_build.yml)17
-rw-r--r--.github/workflows/core-build-pch.yml (renamed from .github/workflows/core_build.yml)10
-rw-r--r--.github/workflows/core_modules_build.yml8
-rw-r--r--.github/workflows/cpp-check.yml7
-rw-r--r--.github/workflows/macos_build.yml3
-rw-r--r--.github/workflows/sql-codestyle.yml (renamed from .github/workflows/check_pending_sql.yml)5
-rw-r--r--.github/workflows/tools_build.yml7
-rw-r--r--.github/workflows/windows_build.yml21
10 files changed, 18 insertions, 114 deletions
diff --git a/.github/workflows/build_dbimport.yml b/.github/workflows/build_dbimport.yml
deleted file mode 100644
index ecc4068d15..0000000000
--- a/.github/workflows/build_dbimport.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-name: build-db
-on:
- push:
- branches:
- - 'master' # only default branch
- pull_request:
-
-concurrency:
- group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
- cancel-in-progress: true
-
-jobs:
- build:
- strategy:
- fail-fast: false
- matrix:
- # the result of the matrix will be the combination of all attributes, so we get os*compiler*modules builds
- os: [ubuntu-20.04]
- compiler: [clang]
- runs-on: ${{ matrix.os }}
- name: ${{ matrix.compiler }}
- env:
- COMPILER: ${{ matrix.compiler }}
- if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
- steps:
- - uses: actions/checkout@v4
- - name: Cache
- uses: actions/cache@v3
- env:
- cache-name: cache-db
- with:
- path: var/ccache
- key: ${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-${{ github.ref }}-${{ github.sha }}
- restore-keys: |
- ${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-${{ github.ref }}-
- ${{ env.cache-name }}-${{ matrix.os }}-${{ matrix.compiler }}-
- ${{ env.cache-name }}-${{ matrix.os }}-
- - name: Configure OS
- run: source ./acore.sh install-deps
- env:
- CONTINUOUS_INTEGRATION: true
- - name: Create conf/config.sh
- run: source ./apps/ci/ci-conf-db.sh
- - name: Build
- run: source ./apps/ci/ci-compile.sh
- - name: Process pending sql
- run: bash bin/acore-db-pendings
- - name: Dry run
- run: source ./apps/ci/ci-dry-run.sh dbimport
diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml
index acce90c0dd..e56b1de2bb 100644
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -1,16 +1,15 @@
-name: check-codestyle
+name: Codestyle
on:
pull_request:
jobs:
- check-codestyle:
+ triage:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
if: github.repository == 'azerothcore/azerothcore-wotlk'
- name: check codestyle
steps:
- uses: actions/checkout@v4
- name: Check core codestyle
diff --git a/.github/workflows/core_matrix_build.yml b/.github/workflows/core-build-nopch.yml
index 76ae747e31..cff8820def 100644
--- a/.github/workflows/core_matrix_build.yml
+++ b/.github/workflows/core-build-nopch.yml
@@ -1,4 +1,4 @@
-name: core
+name: nopch-build
on:
push:
branches:
@@ -20,25 +20,12 @@ jobs:
- os: ubuntu-20.04
compiler: clang12
- os: ubuntu-20.04
- compiler: clang11
- - os: ubuntu-20.04
- compiler: gcc # default in 20.04 is gcc 9
- - os: ubuntu-20.04
compiler: gcc10
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler }}
env:
COMPILER: ${{ matrix.compiler }}
- if: |
- github.repository == 'azerothcore/azerothcore-wotlk'
- && !github.event.pull_request.draft
- && (
- github.ref == 'refs/heads/master'
- || contains(github.event.pull_request.labels.*.name, 'file-cpp'
- || github.event.label.name == 'file-cpp'
- || contains(github.event.pull_request.labels.*.name, 'run-build')
- || github.event.label.name == 'run-build')
- )
+ if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
steps:
- uses: actions/checkout@v4
- name: Cache
diff --git a/.github/workflows/core_build.yml b/.github/workflows/core-build-pch.yml
index c64f7178dc..75862f0ffd 100644
--- a/.github/workflows/core_build.yml
+++ b/.github/workflows/core-build-pch.yml
@@ -1,9 +1,10 @@
-name: main
+name: pch-build
on:
push:
branches:
- 'master'
pull_request:
+ types: ['labeled', 'opened', 'synchronize', 'reopened']
concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
@@ -15,8 +16,9 @@ jobs:
fail-fast: false
matrix:
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
- os: [ubuntu-20.04]
- compiler: [clang]
+ include:
+ - os: ubuntu-20.04
+ compiler: clang12
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler }}
env:
@@ -37,7 +39,7 @@ jobs:
env:
CONTINUOUS_INTEGRATION: true
- name: Create conf/config.sh
- run: source ./apps/ci/ci-conf-core.sh
+ run: source ./apps/ci/ci-conf-core-pch.sh
- name: Process pending sql
run: bash bin/acore-db-pendings
- name: Build
diff --git a/.github/workflows/core_modules_build.yml b/.github/workflows/core_modules_build.yml
index 586edcfa47..a465e589f5 100644
--- a/.github/workflows/core_modules_build.yml
+++ b/.github/workflows/core_modules_build.yml
@@ -28,8 +28,6 @@ jobs:
&& !github.event.pull_request.draft
&& (
github.ref == 'refs/heads/master'
- || contains(github.event.pull_request.labels.*.name, 'file-cpp'
- || github.event.label.name == 'file-cpp'
|| contains(github.event.pull_request.labels.*.name, 'run-build')
|| github.event.label.name == 'run-build')
)
@@ -56,9 +54,3 @@ jobs:
run: bash bin/acore-db-pendings
- name: Build
run: source ./apps/ci/ci-compile.sh
- - name: Dry run
- run: source ./apps/ci/ci-dry-run.sh worldserver
- - name: Check startup errors
- run: source ./apps/ci/ci-error-check.sh
- - name: Run unit tests
- run: source ./apps/ci/ci-run-unit-tests.sh
diff --git a/.github/workflows/cpp-check.yml b/.github/workflows/cpp-check.yml
index ea1f7adbb3..1b1a0ff28d 100644
--- a/.github/workflows/cpp-check.yml
+++ b/.github/workflows/cpp-check.yml
@@ -1,12 +1,5 @@
name: cpp-check
on:
- push:
- branches:
- - "master"
- paths:
- - src/**
- - "!README.md"
- - "!docs/**"
pull_request:
paths:
- src/**
diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml
index 46e3a96181..2e756dc1b8 100644
--- a/.github/workflows/macos_build.yml
+++ b/.github/workflows/macos_build.yml
@@ -16,7 +16,6 @@ jobs:
fail-fast: false
matrix:
os:
- - macos-11
- macos-12
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
@@ -40,5 +39,3 @@ jobs:
run: source ./acore.sh install-deps
- name: Build
run: source ./apps/ci/mac/ci-compile.sh
- - name: Run unit tests
- run: source ./apps/ci/ci-run-unit-tests.sh
diff --git a/.github/workflows/check_pending_sql.yml b/.github/workflows/sql-codestyle.yml
index 52ea18acb2..9149fbb698 100644
--- a/.github/workflows/check_pending_sql.yml
+++ b/.github/workflows/sql-codestyle.yml
@@ -1,9 +1,8 @@
-name: Check pending SQL
+name: SQL Codestyle
on:
pull_request:
-
jobs:
- check-pending-sql:
+ triage:
runs-on: ubuntu-latest
if: github.repository == 'azerothcore/azerothcore-wotlk'
steps:
diff --git a/.github/workflows/tools_build.yml b/.github/workflows/tools_build.yml
index 6044cc0362..51091736d5 100644
--- a/.github/workflows/tools_build.yml
+++ b/.github/workflows/tools_build.yml
@@ -21,7 +21,12 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.compiler }}
env:
COMPILER: ${{ matrix.compiler }}
- if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
+ if: |
+ github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
+ && (
+ contains(github.event.pull_request.labels.*.name, 'run-build')
+ || github.event.label.name == 'run-build')
+ )
steps:
- uses: actions/checkout@v4
- name: Cache
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml
index 76d78e7e0a..61a3862ca9 100644
--- a/.github/workflows/windows_build.yml
+++ b/.github/workflows/windows_build.yml
@@ -34,29 +34,8 @@ jobs:
CONTINUOUS_INTEGRATION: true
run: |
./acore.sh install-deps
- - name: Process pending sql
- shell: bash
- run: bash bin/acore-db-pendings
- name: Build
shell: bash
run: |
export CTOOLS_BUILD=all
./acore.sh compiler build
- - name: Copy dll files
- shell: bash
- run: |
- cp "/c/Program Files/OpenSSL/bin/legacy.dll" "env/dist"
- - name: Dry run authserver
- shell: bash
- run: |
- source ./apps/ci/ci-gen-server-conf-files.sh "authserver" "configs" "."
- cd env/dist
- ./authserver -dry-run
- - name: Dry run worldserver
- shell: bash
- run: |
- source ./apps/ci/ci-gen-server-conf-files.sh "worldserver" "configs" "."
- cd env/dist
- ./worldserver -dry-run
- - name: Stop MySQL
- run: net stop mysql