summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2021-11-05 08:58:17 +0100
committerGitHub <noreply@github.com>2021-11-05 08:58:17 +0100
commitdd79b7f63f06d2c52795c853a80e5d3e21ba4748 (patch)
treec0768af4cfcf9888aadfc773ff90c95c3438e1bb /.github
parentc91959bba97d56ba83136f5e08c368f7e0d1e316 (diff)
feat(CI): C++20 build (#8952)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cpp20.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/cpp20.yml b/.github/workflows/cpp20.yml
new file mode 100644
index 0000000000..e112f086af
--- /dev/null
+++ b/.github/workflows/cpp20.yml
@@ -0,0 +1,45 @@
+name: C++20
+on:
+ push:
+ branches:
+ - 'master'
+ pull_request:
+
+concurrency:
+ group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-20.04
+ name: C++20
+ env:
+ COMPILER: clang
+ ENABLE_CPP_20: 1
+ if: github.repository == 'azerothcore/azerothcore-wotlk'
+ steps:
+ - uses: actions/checkout@v2
+ - name: Cache
+ uses: actions/cache@v2
+ with:
+ path: var/ccache
+ key: ccache:C++20:${{ github.ref }}:${{ github.sha }}
+ restore-keys: |
+ ccache:C++20:${{ github.ref }}
+ ccache:C++20
+ - name: Configure OS
+ run: source ./acore.sh install-deps
+ env:
+ CONTINUOUS_INTEGRATION: true
+ - name: Create conf/config.sh
+ run: source ./apps/ci/ci-conf.sh
+ - 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
+ - name: Run unit tests
+ run: source ./apps/ci/ci-run-unit-tests.sh