Build: Update required GCC version to 11.1

This commit is contained in:
Shauren
2024-04-10 13:52:06 +02:00
parent 58839b7c18
commit 16853af7c8
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -6,13 +6,13 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update && sudo apt-get install -yq libboost-all-dev g++-10 sudo apt-get update && sudo apt-get install -yq libboost-all-dev g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
- name: Setup - name: Setup
run: | run: |
mkdir bin mkdir bin
+1 -1
View File
@@ -3,7 +3,7 @@ target_compile_definitions(trinity-compile-option-interface
INTERFACE INTERFACE
-D_BUILD_DIRECTIVE="$<CONFIG>") -D_BUILD_DIRECTIVE="$<CONFIG>")
set(GCC_EXPECTED_VERSION 10.0.0) set(GCC_EXPECTED_VERSION 11.1.0)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
message(FATAL_ERROR "GCC: TrinityCore requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}") message(FATAL_ERROR "GCC: TrinityCore requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")