From cb0b2ad51d4b736dbed6c71b4fa56409d56bdb1b Mon Sep 17 00:00:00 2001 From: Helias Date: Sun, 10 Mar 2024 12:28:13 +0100 Subject: [PATCH] Revert "ci: use reusable workflow" This reverts commit b2aaa18fecfd8e865813fa70c8a64efa9745776b. --- .github/workflows/core-build.yml | 45 ++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/.github/workflows/core-build.yml b/.github/workflows/core-build.yml index 921c9eb..4612e55 100644 --- a/.github/workflows/core-build.yml +++ b/.github/workflows/core-build.yml @@ -1,12 +1,47 @@ name: core-build on: push: - branches: - - 'master' pull_request: jobs: build: - uses: azerothcore/reusable-workflows/.github/workflows/core_build_modules.yml@main - with: - module_repo: ${{ github.event.repository.name }} + strategy: + fail-fast: false + matrix: + compiler: [clang] + runs-on: ubuntu-20.04 + name: ${{ matrix.compiler }} + env: + COMPILER: ${{ matrix.compiler }} + steps: + - uses: actions/checkout@v2 + with: + repository: 'azerothcore/azerothcore-wotlk' + ref: 'master' + submodules: 'recursive' + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + path: 'modules/mod-azerothshard' + - name: Download mod-autobalance # TODO: remove mod-autobalance as a dependency of mod-azerothshard + run: git clone --depth=1 --branch=master https://github.com/azerothcore/mod-autobalance.git modules/mod-autobalance + - name: Cache + uses: actions/cache@v1.1.2 + with: + path: /home/runner/.ccache + key: ccache:${{ matrix.compiler }}:${{ github.ref }}:${{ github.sha }} + restore-keys: | + ccache:${{ matrix.compiler }}:${{ github.ref }} + ccache:${{ matrix.compiler }} + - name: Configure OS + run: source ./apps/ci/ci-install.sh + env: + CONTINUOUS_INTEGRATION: true + - name: Import db + run: source ./apps/ci/ci-import-db.sh + - name: Build + run: source ./apps/ci/ci-compile.sh + - name: Dry run + run: source ./apps/ci/ci-worldserver-dry-run.sh +# - name: Check startup errors +# run: source ./apps/ci/ci-error-check.sh