chore(CI): Make some changes. Less CI's maybe better...
This commit is contained in:
12
.github/workflows/check_pending_sql.yml
vendored
12
.github/workflows/check_pending_sql.yml
vendored
@@ -1,12 +0,0 @@
|
||||
name: Check pending SQL
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check-pending-sql:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check pending SQL
|
||||
run: source ./apps/ci/ci-pending.sh
|
||||
@@ -1,10 +1,9 @@
|
||||
name: core
|
||||
name: main-nopch
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
pull_request:
|
||||
types: ['labeled', 'opened', 'synchronize', 'reopened']
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
|
||||
@@ -16,29 +15,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# the result of the matrix will be the combination of all attributes, so we get os*compiler builds
|
||||
include:
|
||||
- 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
|
||||
@@ -1,4 +1,4 @@
|
||||
name: main
|
||||
name: main-pch
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -15,8 +15,8 @@ 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]
|
||||
- os: ubuntu-20.04
|
||||
compiler: clang12
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}-${{ matrix.compiler }}
|
||||
env:
|
||||
@@ -37,7 +37,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
|
||||
8
.github/workflows/core_modules_build.yml
vendored
8
.github/workflows/core_modules_build.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: build-db
|
||||
name: db-sql
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -24,6 +24,8 @@ jobs:
|
||||
if: github.repository == 'azerothcore/azerothcore-wotlk' && !github.event.pull_request.draft
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check pending SQL
|
||||
run: source ./apps/ci/ci-pending.sh
|
||||
- name: Cache
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
1
.github/workflows/macos_build.yml
vendored
1
.github/workflows/macos_build.yml
vendored
@@ -16,7 +16,6 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- macos-11
|
||||
- macos-12
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }}
|
||||
|
||||
7
.github/workflows/tools_build.yml
vendored
7
.github/workflows/tools_build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user