mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(CI): add Ubuntu 18.04 to the CI (#3311)
This commit is contained in:
17
.github/workflows/core_build.yml
vendored
17
.github/workflows/core_build.yml
vendored
@@ -11,10 +11,17 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
# the result of the matrix will be the combination of all attributes, so we get os*compiler*modules builds
|
||||||
|
os: [ubuntu-20.04]
|
||||||
compiler: [clang6, clang9, clang10]
|
compiler: [clang6, clang9, clang10]
|
||||||
modules: [with, without]
|
modules: [with, without]
|
||||||
runs-on: ubuntu-20.04
|
# we can include specific combinations here
|
||||||
name: ${{ matrix.compiler }}-${{ matrix.modules }}-modules
|
include:
|
||||||
|
- os: ubuntu-18.04
|
||||||
|
compiler: clang
|
||||||
|
modules: without
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.modules }}-modules
|
||||||
env:
|
env:
|
||||||
COMPILER: ${{ matrix.compiler }}
|
COMPILER: ${{ matrix.compiler }}
|
||||||
steps:
|
steps:
|
||||||
@@ -26,10 +33,10 @@ jobs:
|
|||||||
uses: actions/cache@v1.1.2
|
uses: actions/cache@v1.1.2
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.ccache
|
path: /home/runner/.ccache
|
||||||
key: ccache:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}:${{ github.sha }}
|
key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}:${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}
|
ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules:${{ github.ref }}
|
||||||
ccache:${{ matrix.compiler }}:${{ matrix.modules }}-modules
|
ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ matrix.modules }}-modules
|
||||||
- name: Configure OS
|
- name: Configure OS
|
||||||
run: source ./apps/ci/ci-install.sh
|
run: source ./apps/ci/ci-install.sh
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -25,6 +25,14 @@ time sudo apt-get install -y git lsb-release sudo ccache
|
|||||||
time ./acore.sh install-deps
|
time ./acore.sh install-deps
|
||||||
|
|
||||||
case $COMPILER in
|
case $COMPILER in
|
||||||
|
|
||||||
|
# this is in order to use the "default" clang version of the OS, without forcing a specific version
|
||||||
|
"clang" )
|
||||||
|
time sudo apt-get install -y clang
|
||||||
|
echo "CCOMPILERC=\"clang\"" >> ./conf/config.sh
|
||||||
|
echo "CCOMPILERCXX=\"clang++\"" >> ./conf/config.sh
|
||||||
|
;;
|
||||||
|
|
||||||
"clang6" )
|
"clang6" )
|
||||||
time sudo apt-get install -y clang-6.0
|
time sudo apt-get install -y clang-6.0
|
||||||
echo "CCOMPILERC=\"clang-6.0\"" >> ./conf/config.sh
|
echo "CCOMPILERC=\"clang-6.0\"" >> ./conf/config.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user