Skip to content

Commit 5bf70f8

Browse files
authored
ci(core-build.yml): add reusable workflow (#4)
1 parent 8368a30 commit 5bf70f8

File tree

1 file changed

+5
-42
lines changed

1 file changed

+5
-42
lines changed

.github/workflows/core-build.yml

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,12 @@
11
name: core-build
22
on:
33
push:
4+
branches:
5+
- 'master'
46
pull_request:
57

68
jobs:
79
build:
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
compiler: [clang]
12-
runs-on: ubuntu-latest
13-
name: ${{ matrix.compiler }}
14-
env:
15-
COMPILER: ${{ matrix.compiler }}
16-
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
repository: 'azerothcore/azerothcore-wotlk'
20-
ref: 'master'
21-
submodules: 'recursive'
22-
- uses: actions/checkout@v2
23-
with:
24-
submodules: 'recursive'
25-
path: 'modules/skeleton-module'
26-
- name: Cache
27-
uses: actions/cache@v2
28-
with:
29-
path: /home/runner/.ccache
30-
key: ccache:${{ matrix.compiler }}:${{ github.ref }}:${{ github.sha }}
31-
restore-keys: |
32-
ccache:${{ matrix.compiler }}:${{ github.ref }}
33-
ccache:${{ matrix.compiler }}
34-
- name: Configure OS
35-
run: source ./acore.sh install-deps
36-
env:
37-
CONTINUOUS_INTEGRATION: true
38-
- name: Create conf/config.sh
39-
run: source ./apps/ci/ci-conf.sh
40-
- name: Import db
41-
run: source ./apps/ci/ci-import-db.sh
42-
- name: Build
43-
run: source ./apps/ci/ci-compile.sh
44-
- name: Dry run
45-
run: source ./apps/ci/ci-worldserver-dry-run.sh
46-
- name: Check startup errors
47-
run: source ./apps/ci/ci-error-check.sh
48-
- name: Run unit tests
49-
run: source ./apps/ci/ci-run-unit-tests.sh
10+
uses: azerothcore/reusable-workflows/.github/workflows/core_build_modules.yml@main
11+
with:
12+
module_repo: ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)