Skip to content

More workflow adjustment. #208

More workflow adjustment.

More workflow adjustment. #208

Workflow file for this run

name: core-build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
compiler:
CC: clang-18
CXX: clang++-18
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.compiler.CC }}
# if: !github.event.pull_request.draft
steps:
- uses: actions/checkout@v4
with:
repository: 'azerothcore/azerothcore-wotlk'
ref: 'master'
submodules: 'recursive'
- uses: actions/checkout@v4
with:
repository: 'azerothcore/reusable-workflows'
path: 'reusable-workflows'
- uses: actions/checkout@v4
with:
submodules: 'recursive'
path: 'modules/mod-worgoblin'
- name: Apply core patch
run: git apply --ignore-space-change --ignore-whitespace modules/mod-worgoblin/worgoblin.patch
- name: Cache
uses: actions/cache@v4
with:
path: var/ccache
key: ccache:${{ matrix.compiler.CC }}:${{ github.ref }}:${{ github.sha }}
restore-keys: |
ccache:${{ matrix.compiler.CC }}:${{ github.ref }}
ccache:${{ matrix.compiler.CC }}
- uses: ./.github/actions/linux-build
with:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
- name: cpp check
run: |
sudo apt update -y
sudo apt install -y cppcheck
cppcheck --force --inline-suppr --suppressions-list=reusable-workflows/cppchecksuppressions.txt --output-file=report.txt modules/
if [ -s report.txt ]; then
cat report.txt
exit 1
fi