From c676693d12ab80aabd5c5070a10a09cb84fa2abd Mon Sep 17 00:00:00 2001 From: Bich Vu Thi Ngoc <=> Date: Thu, 10 Oct 2024 07:51:13 +0700 Subject: [PATCH] update workflows --- .github/workflows/generate_firmware.yaml | 4 ++-- .github/workflows/integration_test_auto.yaml | 20 ++++++++++++-------- .github/workflows/unit_test_auto.yaml | 10 ++++++---- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/generate_firmware.yaml b/.github/workflows/generate_firmware.yaml index fd8f4ebf..3105d7d2 100644 --- a/.github/workflows/generate_firmware.yaml +++ b/.github/workflows/generate_firmware.yaml @@ -144,7 +144,7 @@ jobs: export ADAPTER_SN=440133193 export LST_PATH=$PWD/test/integration_test/build/brd4187c/integration_test_iec60730_watchdog/S export HOST_IP=192.168.1.69 - cd test/ + cd ../test/ ls -la bash execute_integration_test.sh ${BOARD_NAME} $TASK $COMPONENTS $ADAPTER_SN $COMPILER - name: Upload firmware @@ -282,7 +282,7 @@ jobs: export LST_PATH=$PWD/test/integration_test/build/brd4187c/integration_test_iec60730_watchdog/S ls -la git branch - cd test/ + cd ../test/ ls -la bash execute_integration_test.sh ${BOARD_NAME} $TASK $COMPONENTS $ADAPTER_SN $COMPILER - name: Upload firmware diff --git a/.github/workflows/integration_test_auto.yaml b/.github/workflows/integration_test_auto.yaml index c9ad3702..7bf1e846 100644 --- a/.github/workflows/integration_test_auto.yaml +++ b/.github/workflows/integration_test_auto.yaml @@ -27,7 +27,7 @@ jobs: COMPONENTS: all ADAPTER_SN: 440111030 CHIP: EFR32MG24BXXXF1536 - TOOL_DIRS: ~/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin + TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin START_ADDR_FLASH: 0x8000000 steps: @@ -48,10 +48,10 @@ jobs: - name: Run test run: | - export PATH=$PATH:~/SimplicityStudio-5/SimplicityStudio_v5/developer/adapter_packs/commander - export PATH=$PATH:~/slc_cli + export PATH=$PATH:$HOME/SimplicityStudio-5/SimplicityStudio_v5/developer/adapter_packs/commander + export PATH=$PATH:$HOME/slc_cli export PATH=$PATH:/usr/bin/ - export PATH=$PATH:~/amazon-corretto-17.0.12.7.1-linux-x64/bin + export PATH=$PATH:$HOME/amazon-corretto-17.0.12.7.1-linux-x64/bin export LST_PATH=$PWD/build/test/integration_test/build/${BOARD_NAME}/integration_test_iec60730_watchdog/S slc configuration --sdk=${SDK_PATH} ninja --version @@ -60,6 +60,8 @@ jobs: make prepare cd build slc signature trust -extpath $SDK_PATH/extension/$REPO_NAME + cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_INTEGRATION_TESTING=ON -DBOARD_NAME=${BOARD_NAME} + make integration_test_info -j4 cd ../test @@ -95,7 +97,7 @@ jobs: COMPONENTS: all ADAPTER_SN: 440189400 CHIP: EFR32MG12 - TOOL_DIRS: ~/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin + TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin START_ADDR_FLASH: 0x0000000 steps: @@ -117,10 +119,10 @@ jobs: - name: Prepare environment run: | - export PATH=$PATH:~/SimplicityStudio-5/SimplicityStudio_v5/developer/adapter_packs/commander - export PATH=$PATH:~/slc_cli + export PATH=$PATH:$HOME/SimplicityStudio-5/SimplicityStudio_v5/developer/adapter_packs/commander + export PATH=$PATH:$HOME/slc_cli export PATH=$PATH:/usr/bin/ - export PATH=$PATH:~/amazon-corretto-17.0.12.7.1-linux-x64/bin + export PATH=$PATH:$HOME/amazon-corretto-17.0.12.7.1-linux-x64/bin export LST_PATH=$PWD/build/test/integration_test/build/${BOARD_NAME}/integration_test_iec60730_watchdog/S slc configuration --sdk=${SDK_PATH} ninja --version @@ -129,6 +131,8 @@ jobs: make prepare cd build slc signature trust -extpath $SDK_PATH/extension/$REPO_NAME + cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_INTEGRATION_TESTING=ON -DBOARD_NAME=${BOARD_NAME} + make integration_test_info -j4 cd ../test diff --git a/.github/workflows/unit_test_auto.yaml b/.github/workflows/unit_test_auto.yaml index de8f765e..56edf725 100644 --- a/.github/workflows/unit_test_auto.yaml +++ b/.github/workflows/unit_test_auto.yaml @@ -27,7 +27,7 @@ jobs: COMPONENTS: all ADAPTER_SN: 440111030 CHIP: EFR32MG24BXXXF1536 - TOOL_DIRS: ~/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin + TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin START_ADDR_FLASH: 0x8000000 steps: @@ -59,7 +59,8 @@ jobs: make prepare cd build slc signature trust -extpath $SDK_PATH/extension/$REPO_NAME - + cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_INTEGRATION_TESTING=ON -DBOARD_NAME=${BOARD_NAME} + make unit_test_info -j4 cd ../test bash execute_unit_test.sh ${BOARD_NAME} $TASK $COMPONENTS $ADAPTER_SN $COMPILER > Test_integration_${BOARD_NAME}_GCC_1.txt @@ -96,7 +97,7 @@ jobs: COMPONENTS: all ADAPTER_SN: 440189400 CHIP: EFR32MG12 - TOOL_DIRS: ~/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin + TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin START_ADDR_FLASH: 0x0000000 steps: @@ -130,7 +131,8 @@ jobs: make prepare cd build slc signature trust -extpath $SDK_PATH/extension/$REPO_NAME - + cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_INTEGRATION_TESTING=ON -DBOARD_NAME=${BOARD_NAME} + make unit_test_info -j4 cd ../test bash execute_unit_test.sh ${BOARD_NAME} $TASK $COMPONENTS $ADAPTER_SN $COMPILER > Test_integration_${BOARD_NAME}_GCC_1.txt