~aleteoryx/muditaos

f611184076d6711a10bca8a5d7b3001a0eb310ad — Radoslaw Wicik 5 years ago 922e777
[EGD-6413] Update CI Debug for UT Release for harness

Split build types for UT and Harness tests.
3 files changed, 18 insertions(+), 16 deletions(-)

M .github/workflows/main.yml
M enabled_unittests
M tools/run_unittests.sh
M .github/workflows/main.yml => .github/workflows/main.yml +16 -13
@@ 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

M enabled_unittests => enabled_unittests +1 -2
@@ 428,8 428,7 @@ TESTS_LIST["catch2-unittest_ATURCStream"]="
#---------
#---------
TESTS_LIST["catch2-unittest_CellularResult"]="
    CellularResult: serializing/deserializing;
    CellularResult: objects creation;
    CellularResult
"
#---------


M tools/run_unittests.sh => tools/run_unittests.sh +1 -1
@@ 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