From f611184076d6711a10bca8a5d7b3001a0eb310ad Mon Sep 17 00:00:00 2001 From: Radoslaw Wicik Date: Thu, 1 Apr 2021 13:07:29 +0200 Subject: [PATCH] [EGD-6413] Update CI Debug for UT Release for harness Split build types for UT and Harness tests. --- .github/workflows/main.yml | 29 ++++++++++++++++------------- enabled_unittests | 3 +-- tools/run_unittests.sh | 2 +- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 099325ac0b694b8ab61a0a3ea93751560ca2e3b4..3d5fd85715b7cbf42d687cdf0a8d373806280953 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: fetch-depth: 0 - name: check commit messages run: ./tools/check_commit_messages.py + check_copyright_and_style: name: check copyright and style if: github.event.pull_request.draft == false @@ -69,30 +70,32 @@ jobs: with: token: ${{ secrets.GitHub_PAT }} submodules: recursive - - name: build linux binary - run: | - export JOBS=${JOBS:-$(nproc)} && \ - echo "JOBS=${JOBS}" && \ - ./configure.sh linux Release -G Ninja && \ - pushd build-linux-Release && \ - ninja -j ${JOBS} && \ - popd - - name: Check for statics - run: ./tools/find_global_data.py build-linux-Release/PurePhone.elf - - name: build unit tests + - name: build Linux Debug run: | export JOBS=${JOBS:-$(nproc)} && \ echo "JOBS=${JOBS}" && \ ./configure.sh linux Debug -G Ninja && \ pushd build-linux-Debug && \ ninja -j ${JOBS} unittests && \ + ninja -j ${JOBS} && \ popd - name: run unit tests run: | ./tools/run_unittests.sh enabled_unittests - - name: store build artefact + - name: Check for statics + run: | + ./tools/find_global_data.py build-linux-Debug/PurePhone.elf + - name: store debug build artefact + run: | + tar -S -cf /artefacts/build-${GITHUB_SHA}.tar build-linux-Debug + - name: build linux Release run: | - tar -S -cf /artefacts/build-${GITHUB_SHA}.tar build-linux-Release + export JOBS=${JOBS:-$(nproc)} && \ + echo "JOBS=${JOBS}" && \ + ./configure.sh linux Release -G Ninja && \ + pushd build-linux-Release && \ + ninja -j ${JOBS} && \ + popd - name: start emulator run: | rm -f /tmp/purephone_pts_name diff --git a/enabled_unittests b/enabled_unittests index 5c8f3b2df5b66804851c8832d30ba8fded57dde8..21ae14fe233cd0b184c7df706e064b7bddd323a7 100644 --- a/enabled_unittests +++ b/enabled_unittests @@ -428,8 +428,7 @@ TESTS_LIST["catch2-unittest_ATURCStream"]=" #--------- #--------- TESTS_LIST["catch2-unittest_CellularResult"]=" - CellularResult: serializing/deserializing; - CellularResult: objects creation; + CellularResult " #--------- diff --git a/tools/run_unittests.sh b/tools/run_unittests.sh index 66f01da05945919df0d6d160bf7803bb878f9c56..35df51f6ba8be33ed45c1744e95a3017bf117000 100755 --- a/tools/run_unittests.sh +++ b/tools/run_unittests.sh @@ -3,7 +3,7 @@ # For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md root_dir="$(realpath $(dirname $(realpath $0))/..)" -build_dir="${root_dir}/build-linux-Release" +build_dir="${root_dir}/build-linux-Debug" run_logs=${build_dir}/ut_run_logs