diff --git a/.github/workflows/auto-rebase.yml b/.github/workflows/auto-rebase.yml new file mode 100644 index 0000000000000..ce07ce08d25d9 --- /dev/null +++ b/.github/workflows/auto-rebase.yml @@ -0,0 +1,56 @@ +name: automerge + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + fetch-depth: 0 + - name: Merge TC + run: | + git status + git config user.email "niam5+ci@post.com" && git config user.name "Niam5" + git remote add Trinity https://github.com/TrinityCore/TrinityCore.git + git fetch --all + git rebase Trinity/master + git status + - name: Set reusable strings + id: strings + shell: bash + run: | + echo "build-output-dir=${{ github.workspace }}/bin" >> "$GITHUB_OUTPUT" + - name: Dependencies + run: | + 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-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 + - name: Setup + env: + CMAKE_BUILD_TYPE: Debug + run: > + cmake -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} + -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 + -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" + -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=1 + - name: Build + run: | + cd bin + make -j 4 -k && make install + - name: Unit tests + run: | + cd bin + make test + - name: Check executables + run: | + cd ${{ github.workspace }}/check_install/bin + ./bnetserver --version + ./worldserver --version + - name: Push changes + run: | + git push -f diff --git a/.github/workflows/gcc-build.yml b/.github/workflows/gcc-build.yml index 2d51498a0dd77..72f22b4a93b8a 100644 --- a/.github/workflows/gcc-build.yml +++ b/.github/workflows/gcc-build.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set reusable strings id: strings shell: bash @@ -20,8 +22,8 @@ jobs: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 - name: Setup env: - CFLAGS: -Werror - CXXFLAGS: -Werror + #CFLAGS: -Werror + #CXXFLAGS: -Werror CMAKE_BUILD_TYPE: Debug run: > cmake -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} diff --git a/.github/workflows/macos-arm-build.yml b/.github/workflows/macos-arm-build.yml index fb353fd5ba3ce..5637c4f849b62 100644 --- a/.github/workflows/macos-arm-build.yml +++ b/.github/workflows/macos-arm-build.yml @@ -10,6 +10,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set reusable strings id: strings @@ -37,8 +39,8 @@ jobs: - name: Configure CMake env: - CFLAGS: -Werror - CXXFLAGS: -Werror + #CFLAGS: -Werror + #CXXFLAGS: -Werror CMAKE_BUILD_TYPE: Debug run: > cmake -GNinja -B ${{ steps.strings.outputs.build-output-dir }} diff --git a/.github/workflows/win-x64-build.yml b/.github/workflows/win-x64-build.yml index b659f4e778cb4..43fb97c07d008 100644 --- a/.github/workflows/win-x64-build.yml +++ b/.github/workflows/win-x64-build.yml @@ -13,6 +13,8 @@ jobs: OPENSSL_ROOT_DIR: C:/libs/openssl steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Set reusable strings id: strings @@ -71,16 +73,15 @@ jobs: - name: Configure CMake env: - CFLAGS: /WX - CXXFLAGS: /WX + #CFLAGS: /WX + #CXXFLAGS: /WX BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} run: > - cmake -GNinja -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} - -DTOOLS=ON + cmake -S ${{ github.workspace }} -B ${{ steps.strings.outputs.build-output-dir }} -DTOOLS=ON - name: Build run: | - cmake --build ${{ steps.strings.outputs.build-output-dir }} + cmake --build ${{ steps.strings.outputs.build-output-dir }} --config RelWithDebInfo - name: Copy Dependencies run: |