From 2668a30cbd19e14dbb329a178ad1cfcbfd0b845d Mon Sep 17 00:00:00 2001 From: Niam5 Date: Sun, 17 Sep 2023 00:23:44 -0500 Subject: [PATCH] Update automerge workflow to build after merge --- .github/workflows/auto-merge.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 6e7376dd44..138ce7d991 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -12,7 +12,7 @@ jobs: with: submodules: 'recursive' fetch-depth: 0 - - name: Merge CPP + - name: Merge TCPP run: | git status git config user.email "niam5+ci@post.com" && git config user.name "Niam5" @@ -20,6 +20,28 @@ jobs: git fetch Cata master git rebase Cata/master git status + - name: Dependencies + run: | + sudo apt-get update && sudo apt-get install -yq libboost-all-dev + - name: Setup + run: | + mkdir bin + cd bin + cmake ../ -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DELUNA=1 -DTOOLS=1 -DSCRIPTS=static -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=1 + cd .. + - name: Build + run: | + cd bin + make -j 4 -k && make install + - name: Unit tests + run: | + cd bin + make test + - name: Check executables + run: | + cd check_install/bin + ./bnetserver --version + ./worldserver --version - name: Push changes run: | git push --force