More workflow adjustment. #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |