From 8ed0d6042aea4077136a6a92cf4e91efe041300f Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Fri, 8 Nov 2024 10:07:38 +0530 Subject: [PATCH 1/8] .gitmodules: extras/hil_support: Add submodule. Signed-off-by: Ramya Subramanyam --- .gitmodules | 3 +++ extras/hil_support | 1 + 2 files changed, 4 insertions(+) create mode 160000 extras/hil_support diff --git a/.gitmodules b/.gitmodules index a6258ea..21ef5d9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "extras/unity"] path = extras/unity url = https://github.com/ThrowTheSwitch/Unity.git +[submodule "extras/hil_support"] + path = extras/hil_support + url = ssh://git@bitbucket.vih.infineon.com:7999/desswdev/hil_support.git diff --git a/extras/hil_support b/extras/hil_support new file mode 160000 index 0000000..c8ccaa6 --- /dev/null +++ b/extras/hil_support @@ -0,0 +1 @@ +Subproject commit c8ccaa64e35da392b4d41dc6c7170eef980a0075 From 476931fda2611604d164aab36cc245c00e032bef Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Fri, 15 Nov 2024 09:03:25 +0530 Subject: [PATCH 2/8] Makefile.arduino.mk: tests/unity: Rename folder. Signed-off-by: Ramya Subramanyam --- Makefile.arduino.mk | 4 ++-- {test/unit => tests/unity}/src/features/test_math.cpp | 0 {test/unit => tests/unity}/src/features/test_math.hpp | 0 {test/unit => tests/unity}/src/test_includes.hpp | 0 {test/unit => tests/unity}/src/test_main.ino | 0 {test/unit => tests/unity}/src/utils/unity_ifx.cpp | 0 {test/unit => tests/unity}/src/utils/unity_ifx.h | 0 {test/unit => tests/unity}/src/utils/utilities.cpp | 0 {test/unit => tests/unity}/src/utils/utilities.hpp | 0 {test/unit => tests/unity}/unity_config.h | 0 10 files changed, 2 insertions(+), 2 deletions(-) rename {test/unit => tests/unity}/src/features/test_math.cpp (100%) rename {test/unit => tests/unity}/src/features/test_math.hpp (100%) rename {test/unit => tests/unity}/src/test_includes.hpp (100%) rename {test/unit => tests/unity}/src/test_main.ino (100%) rename {test/unit => tests/unity}/src/utils/unity_ifx.cpp (100%) rename {test/unit => tests/unity}/src/utils/unity_ifx.h (100%) rename {test/unit => tests/unity}/src/utils/utilities.cpp (100%) rename {test/unit => tests/unity}/src/utils/utilities.hpp (100%) rename {test/unit => tests/unity}/unity_config.h (100%) diff --git a/Makefile.arduino.mk b/Makefile.arduino.mk index e3f9af0..9f9d9fc 100644 --- a/Makefile.arduino.mk +++ b/Makefile.arduino.mk @@ -44,8 +44,8 @@ ifeq ($(UNITY_PATH),) $(error "Must set variable UNITY_PATH in order to be able to compile Arduino unit tests !") else find $(UNITY_PATH) -name '*.[hc]' \( -path '*extras*' -a -path '*src*' -or -path '*src*' -a \! -path '*example*' \) -exec \cp {} build \; - find test/unit -name '*.[hc]*' -a \! -path '*mtb*' -a \! -path '*applibs*' -exec \cp {} build \; - cp test/unit/src/test_main.ino build/build.ino + find tests/unity -name '*.[hc]*' -a \! -path '*mtb*' -a \! -path '*applibs*' -exec \cp {} build \; + cp tests/unity/src/test_main.ino build/build.ino endif diff --git a/test/unit/src/features/test_math.cpp b/tests/unity/src/features/test_math.cpp similarity index 100% rename from test/unit/src/features/test_math.cpp rename to tests/unity/src/features/test_math.cpp diff --git a/test/unit/src/features/test_math.hpp b/tests/unity/src/features/test_math.hpp similarity index 100% rename from test/unit/src/features/test_math.hpp rename to tests/unity/src/features/test_math.hpp diff --git a/test/unit/src/test_includes.hpp b/tests/unity/src/test_includes.hpp similarity index 100% rename from test/unit/src/test_includes.hpp rename to tests/unity/src/test_includes.hpp diff --git a/test/unit/src/test_main.ino b/tests/unity/src/test_main.ino similarity index 100% rename from test/unit/src/test_main.ino rename to tests/unity/src/test_main.ino diff --git a/test/unit/src/utils/unity_ifx.cpp b/tests/unity/src/utils/unity_ifx.cpp similarity index 100% rename from test/unit/src/utils/unity_ifx.cpp rename to tests/unity/src/utils/unity_ifx.cpp diff --git a/test/unit/src/utils/unity_ifx.h b/tests/unity/src/utils/unity_ifx.h similarity index 100% rename from test/unit/src/utils/unity_ifx.h rename to tests/unity/src/utils/unity_ifx.h diff --git a/test/unit/src/utils/utilities.cpp b/tests/unity/src/utils/utilities.cpp similarity index 100% rename from test/unit/src/utils/utilities.cpp rename to tests/unity/src/utils/utilities.cpp diff --git a/test/unit/src/utils/utilities.hpp b/tests/unity/src/utils/utilities.hpp similarity index 100% rename from test/unit/src/utils/utilities.hpp rename to tests/unity/src/utils/utilities.hpp diff --git a/test/unit/unity_config.h b/tests/unity/unity_config.h similarity index 100% rename from test/unit/unity_config.h rename to tests/unity/unity_config.h From e8a76b629512d15d929bfbfbd14789bb49cd3834 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Fri, 15 Nov 2024 12:54:51 +0530 Subject: [PATCH 3/8] tests/unity: Move makefiles inside and test files inside folder. Signed-off-by: Ramya Subramanyam --- Makefile.arduino.mk => tests/unity/Makefile | 25 ++++++++++++------- Makefile.test => tests/unity/Makefile.test | 2 +- .../{features => corelibs/math}/test_math.cpp | 0 .../{features => corelibs/math}/test_math.hpp | 0 4 files changed, 17 insertions(+), 10 deletions(-) rename Makefile.arduino.mk => tests/unity/Makefile (89%) rename Makefile.test => tests/unity/Makefile.test (76%) rename tests/unity/src/{features => corelibs/math}/test_math.cpp (100%) rename tests/unity/src/{features => corelibs/math}/test_math.hpp (100%) diff --git a/Makefile.arduino.mk b/tests/unity/Makefile similarity index 89% rename from Makefile.arduino.mk rename to tests/unity/Makefile index 9f9d9fc..1ecb61d 100644 --- a/Makefile.arduino.mk +++ b/tests/unity/Makefile @@ -1,15 +1,16 @@ FQBN ?= PORT ?= TESTS ?= +UNITY_PATH ?= ../../extras/unity +BAUD_RATE ?= 115200 $(info FQBN : $(FQBN)) $(info PORT : $(PORT)) - -UNITY_PATH = ./extras/unity +$(info UNITY_PATH : $(UNITY_PATH)) +$(info BAUD_RATE : $(BAUD_RATE)) TESTS_SINGLE_HARDWARE_CONNECTED=-DTEST_SINGLE_HARDWARE_CONNECTED - TESTS_MULTI_HARDWARE_CONNECTED=-DTEST_MULTI_HARDWARE_CONNECTED @@ -44,8 +45,8 @@ ifeq ($(UNITY_PATH),) $(error "Must set variable UNITY_PATH in order to be able to compile Arduino unit tests !") else find $(UNITY_PATH) -name '*.[hc]' \( -path '*extras*' -a -path '*src*' -or -path '*src*' -a \! -path '*example*' \) -exec \cp {} build \; - find tests/unity -name '*.[hc]*' -a \! -path '*mtb*' -a \! -path '*applibs*' -exec \cp {} build \; - cp tests/unity/src/test_main.ino build/build.ino + find src -name '*.[hc]*' -a \! -path '*mtb*' -a \! -path '*applibs*' -exec \cp {} build \; + cp src/test_main.ino build/build.ino endif @@ -79,19 +80,22 @@ else endif -upload: +upload: compile ifeq ($(PORT),) $(error "Must set variable PORT (Windows port naming convention, ie COM16) in order to be able to flash Arduino sketches !") endif ifeq ($(FQBN),) $(error "Must set variable FQBN in order to be able to flash Arduino sketches !") else - arduino-cli upload -p $(PORT) --fqbn $(FQBN) build + arduino-cli.exe upload \ + -p $(PORT) \ + --fqbn $(FQBN) \ + --verbose \ + build endif flash: compile upload -flashLTO: compileLTO upload monitor: @@ -101,6 +105,9 @@ endif ifeq ($(FQBN),) $(error "Must set variable FQBN in order to be able to flash Arduino sketches !") else - arduino-cli monitor -c baudrate=115200 -p $(PORT) --fqbn $(FQBN) + arduino-cli.exe monitor \ + -c baudrate=$(BAUD_RATE) \ + -p $(PORT) \ + --fqbn $(FQBN) endif diff --git a/Makefile.test b/tests/unity/Makefile.test similarity index 76% rename from Makefile.test rename to tests/unity/Makefile.test index 64539f3..360aaed 100644 --- a/Makefile.test +++ b/tests/unity/Makefile.test @@ -4,6 +4,6 @@ ######################### tests runnable with a single board "talking to itself" ######################### -make -f Makefile.arduino.mk FQBN=infineon:psoc:cy8ckit_062s2_ai PORT=/dev/ttyACM0 single_hardware_connected monitor +make FQBN=infineon:psoc:cy8ckit_062s2_ai PORT=/dev/ttyACM0 single_hardware_connected monitor ######################### tests runnable with 2 boards and some wires ######################### diff --git a/tests/unity/src/features/test_math.cpp b/tests/unity/src/corelibs/math/test_math.cpp similarity index 100% rename from tests/unity/src/features/test_math.cpp rename to tests/unity/src/corelibs/math/test_math.cpp diff --git a/tests/unity/src/features/test_math.hpp b/tests/unity/src/corelibs/math/test_math.hpp similarity index 100% rename from tests/unity/src/features/test_math.hpp rename to tests/unity/src/corelibs/math/test_math.hpp From 015176f4c9390f1f18ab0c485b8d267519d067ef Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Fri, 15 Nov 2024 12:55:53 +0530 Subject: [PATCH 4/8] .github/workflows: Add Unity HIL tests on CI/CD. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_unity_checks.yml | 183 +++++++++++++++++++++++++ 1 file changed, 183 insertions(+) create mode 100644 .github/workflows/hil_unity_checks.yml diff --git a/.github/workflows/hil_unity_checks.yml b/.github/workflows/hil_unity_checks.yml new file mode 100644 index 0000000..2d6b6ce --- /dev/null +++ b/.github/workflows/hil_unity_checks.yml @@ -0,0 +1,183 @@ +name: Hil unity library checks + +# on which event should we start push, pull request or schedule dispatches +on: + - push + - pull_request + +env: + TEST_VERSION: 1.0.0 + +jobs: + + # The build job compiles the sample code for different boards + tests: + + ############################################################################# + # This action sets common variables for the flow and + # identifies the libs to compile + runs-on: + - self-hosted + - X64 + - Linux + - PSoC + + # which combination of sample code and boards should run + # for this example of 2 sample codes and 3 boards a total of 2x3=6 runners have to work. + # if we have only 4 runner then these 4 are started and the last 2 are waiting until they can start + strategy: + + matrix: + # List of all examples in the lib to compile + example: [ + examples/testSketch/testSketch.ino + ] + + # board packages we want to run + # attention the matrix spans over the fqbn not platform so that we can choose different boards + # this example compiles each sample code for Arduino Uno, XMC2Go and XMC4700 boards + fqbn: [ + "infineon:psoc:cy8ckit_062s2_ai" + ] + + # include additional information for each fqbn, in this case the platform name to install + include: + - fqbn: "infineon:psoc:cy8ckit_062s2_ai" + platform: "infineon:psoc" + + # These are the steps which should run for each combination of fqbn and example code + steps: + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Generate package json + run: | + python ./tools/release.py build-local + + - name: Start local HTTP server + run: | + cd pkg_build + nohup python -m http.server 8000 & echo $! > server.pid + + - name: Install/Update Arduino Platform + run: | + arduino-cli core update-index + arduino-cli core install ${{ matrix.platform }} --additional-urls http://localhost:8000/package_psoc_index.json + arduino-cli core list + + - name: Kill local HTTP server + run: | + cd pkg_build + kill $(cat server.pid) + rm server.pid + + - name: Remove latest installed platform version + run: | + cd ~/.arduino15/packages/infineon/hardware/psoc + rm -rf * + + - name: copy/link repository to arduino path + run: | + mkdir ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION + cp -a ./* ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION + cd ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION + + - name: copy/link arduino core api path + run: | + mkdir ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/cores/psoc/api + cp -a ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/extras/arduino-core-api/api/* ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/cores/psoc/api + + # Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information + - id: startup + run: | + # switch on the HIL + cd /opt/runner_support/ + + # set the hil-unity-checks + hil=$(./py_checkusb.py --readyaml ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/tests/unity/hil-unity-checklist.yaml --json) + echo "hil=${hil}" >> $GITHUB_OUTPUT + + # fetch unity libraries + readarray -t data < <(echo $hil | jq -r '.|keys[]') + export dev=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}") + echo "devices=${dev}" >> $GITHUB_OUTPUT + echo "devices=${dev}" + + # setup environment + - name: Environment + run: | + hil=${{ toJson(steps.startup.outputs.hil) }} + REPO="$(basename "$GITHUB_REPOSITORY")" + DEVICE=${{ fromJson(needs.setup.outputs.devices) }} + FQBN=`tr '.' ':' <<<"${DEVICE}"` + + echo "repo=$REPO" >> $GITHUB_ENV + echo "device=$DEVICE" >> $GITHUB_ENV + echo "version=$TEST_VERSION" >> $GITHUB_ENV + echo "fqbn=$FQBN" >> $GITHUB_ENV + + echo "Repo " $REPO + echo "Device " $DEVICE + echo "FQBN " $FQBN + echo "Version " ${TEST_VERSION} + + - name: Build + run: | + export TMPDIR=$HOME/tmp + mkdir -p $TMPDIR + rm -rf $HOME/artefact + mkdir -p $HOME/artefact + + lib=${{ toJson(env.library) }} + readarray -t LIBS < <(echo ${lib} | jq ".|keys[]" -r --compact-output) + + cd /opt/runner_support/ + readarray -t SERIALS < <(echo $(./py_checkusb.py --type ${LIB} --json) | jq ".\"${LIB}\".\"${{ env.device }}\"|keys[]" -r) + + # check if we have one or more serial numbers for this lib or stop here + if [[ -z $SERIALS ]]; then + echo "No serial or library information found" + exit 0 + fi + + # loop over all serials and fetch the ports + declare -a PORTS + for SERIAL in "${SERIALS[@]}"; do + PORTS+=($(/opt/runner_support/find_usb.sh $SERIAL)) + done + + # loop over all examples for one library + readarray -t EXAMPLES < <(echo $lib | jq ".\"${LIB}\"|keys[]" -r --compact-output) + + cd ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/tests/unity/ + echo "==============================================================================================================" + echo "Run Tests" + echo "==============================================================================================================" + make FQBN=${{ env.fqbn }} PORT=/dev/ttyACM0 single_hardware_connected + mkdir -p ~/artefact/unit_tests/ + mv ./build/build/* ~/artefact/unit_tests/. + echo "==============================================================================================================" + + + + echo "==============================================================================================================" + echo "Monitor on index $idx for TEST: ${TESTS[idx]} under EXAMPLE: ${EXAMPLE} and LIB: ${LIB}" + timeout 1m \ + /opt/runner_support/py_console.py \ + --port /dev/ttyACM0 \ + --baud 115200 \ + --report ~/artefact/unit_tests/${{ env.device }}/report.json + + echo "==============================================================================================================" + + + # Upload the compiled HEX files to the GitHub server + - name: Artefact + uses: actions/upload-artifact@v4 + with: + name: ${{ env.device }} + path: ~/artefact/* + if-no-files-found: ignore \ No newline at end of file From f791d6a2d7ea1f45b50e39fc2bd02cb6a79966fe Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Fri, 15 Nov 2024 12:56:30 +0530 Subject: [PATCH 5/8] tests/unity: Add test config file. Signed-off-by: Ramya Subramanyam --- tests/unity/hil-unity-checklist.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/unity/hil-unity-checklist.yaml diff --git a/tests/unity/hil-unity-checklist.yaml b/tests/unity/hil-unity-checklist.yaml new file mode 100644 index 0000000..c5fac9f --- /dev/null +++ b/tests/unity/hil-unity-checklist.yaml @@ -0,0 +1,7 @@ +infineon:psoc:cy8ckit_062s2_ai: + MATH: + 1: + - "math" + + + \ No newline at end of file From 0849cf2709e897f1f9520fee965e3b1fe946ff82 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Mon, 18 Nov 2024 13:19:57 +0530 Subject: [PATCH 6/8] .gitmodules: Remove submodule for hil support. Signed-off-by: Ramya Subramanyam --- .gitmodules | 3 --- extras/hil_support | 1 - 2 files changed, 4 deletions(-) delete mode 160000 extras/hil_support diff --git a/.gitmodules b/.gitmodules index 21ef5d9..a6258ea 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,6 +4,3 @@ [submodule "extras/unity"] path = extras/unity url = https://github.com/ThrowTheSwitch/Unity.git -[submodule "extras/hil_support"] - path = extras/hil_support - url = ssh://git@bitbucket.vih.infineon.com:7999/desswdev/hil_support.git diff --git a/extras/hil_support b/extras/hil_support deleted file mode 160000 index c8ccaa6..0000000 --- a/extras/hil_support +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c8ccaa64e35da392b4d41dc6c7170eef980a0075 From e9b5a7026b4849994bf8d366b46afc64ac3bfb41 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Tue, 19 Nov 2024 07:21:15 +0530 Subject: [PATCH 7/8] .github/workflows: Fix hil unity checks. Signed-off-by: Ramya Subramanyam --- .github/workflows/hil_unity_checks.yml | 34 ++++++-------------------- tests/unity/Makefile | 6 ++--- tests/unity/hil-unity-checklist.yaml | 2 +- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/hil_unity_checks.yml b/.github/workflows/hil_unity_checks.yml index 2d6b6ce..1013f35 100644 --- a/.github/workflows/hil_unity_checks.yml +++ b/.github/workflows/hil_unity_checks.yml @@ -99,6 +99,7 @@ jobs: # set the hil-unity-checks hil=$(./py_checkusb.py --readyaml ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/tests/unity/hil-unity-checklist.yaml --json) echo "hil=${hil}" >> $GITHUB_OUTPUT + echo "hil=${hil}" # fetch unity libraries readarray -t data < <(echo $hil | jq -r '.|keys[]') @@ -111,8 +112,10 @@ jobs: run: | hil=${{ toJson(steps.startup.outputs.hil) }} REPO="$(basename "$GITHUB_REPOSITORY")" - DEVICE=${{ fromJson(needs.setup.outputs.devices) }} - FQBN=`tr '.' ':' <<<"${DEVICE}"` + DEVICE=${{ steps.startup.outputs.devices }} + DEVICE=$(echo $DEVICE | tr -d '[]') + FQBN=$(echo $DEVICE | tr -d '[]') + DEVICE=`tr ':' '.' <<<"${DEVICE}"` echo "repo=$REPO" >> $GITHUB_ENV echo "device=$DEVICE" >> $GITHUB_ENV @@ -130,41 +133,20 @@ jobs: mkdir -p $TMPDIR rm -rf $HOME/artefact mkdir -p $HOME/artefact - - lib=${{ toJson(env.library) }} - readarray -t LIBS < <(echo ${lib} | jq ".|keys[]" -r --compact-output) - - cd /opt/runner_support/ - readarray -t SERIALS < <(echo $(./py_checkusb.py --type ${LIB} --json) | jq ".\"${LIB}\".\"${{ env.device }}\"|keys[]" -r) - - # check if we have one or more serial numbers for this lib or stop here - if [[ -z $SERIALS ]]; then - echo "No serial or library information found" - exit 0 - fi - - # loop over all serials and fetch the ports - declare -a PORTS - for SERIAL in "${SERIALS[@]}"; do - PORTS+=($(/opt/runner_support/find_usb.sh $SERIAL)) - done - - # loop over all examples for one library - readarray -t EXAMPLES < <(echo $lib | jq ".\"${LIB}\"|keys[]" -r --compact-output) cd ~/.arduino15/packages/infineon/hardware/psoc/$TEST_VERSION/tests/unity/ echo "==============================================================================================================" echo "Run Tests" echo "==============================================================================================================" make FQBN=${{ env.fqbn }} PORT=/dev/ttyACM0 single_hardware_connected - mkdir -p ~/artefact/unit_tests/ - mv ./build/build/* ~/artefact/unit_tests/. + mkdir -p ~/artefact/unit_tests/${{ env.device }} + mv ./build/* ~/artefact/unit_tests/. echo "==============================================================================================================" echo "==============================================================================================================" - echo "Monitor on index $idx for TEST: ${TESTS[idx]} under EXAMPLE: ${EXAMPLE} and LIB: ${LIB}" + echo "Monitor" timeout 1m \ /opt/runner_support/py_console.py \ --port /dev/ttyACM0 \ diff --git a/tests/unity/Makefile b/tests/unity/Makefile index 1ecb61d..09fa9a4 100644 --- a/tests/unity/Makefile +++ b/tests/unity/Makefile @@ -58,7 +58,7 @@ ifeq ($(FQBN),) $(error "Must set variable FQBN in order to be able to compile Arduino sketches !") else # CAUTION : only use '=' when assigning values to vars, not '+=' - arduino-cli compile --clean --log --warnings all --fqbn $(FQBN) --build-property "compiler.c.extra_flags=\"-DUNITY_INCLUDE_CONFIG_H=1\"" \ + arduino-cli compile --clean --verbose --log --warnings all --fqbn $(FQBN) --build-property "compiler.c.extra_flags=\"-DUNITY_INCLUDE_CONFIG_H=1\"" \ --build-property compiler.cpp.extra_flags="$(TESTS)" build endif @@ -87,7 +87,7 @@ endif ifeq ($(FQBN),) $(error "Must set variable FQBN in order to be able to flash Arduino sketches !") else - arduino-cli.exe upload \ + arduino-cli upload \ -p $(PORT) \ --fqbn $(FQBN) \ --verbose \ @@ -105,7 +105,7 @@ endif ifeq ($(FQBN),) $(error "Must set variable FQBN in order to be able to flash Arduino sketches !") else - arduino-cli.exe monitor \ + arduino-cli monitor \ -c baudrate=$(BAUD_RATE) \ -p $(PORT) \ --fqbn $(FQBN) diff --git a/tests/unity/hil-unity-checklist.yaml b/tests/unity/hil-unity-checklist.yaml index c5fac9f..f2afc9d 100644 --- a/tests/unity/hil-unity-checklist.yaml +++ b/tests/unity/hil-unity-checklist.yaml @@ -1,5 +1,5 @@ infineon:psoc:cy8ckit_062s2_ai: - MATH: + math: 1: - "math" From f35113be31e227cfd94902469a85c19d846e1004 Mon Sep 17 00:00:00 2001 From: Ramya Subramanyam Date: Thu, 21 Nov 2024 14:54:11 +0530 Subject: [PATCH 8/8] .github/workflows: Build based on generated package installation. Signed-off-by: Ramya Subramanyam --- .github/workflows/build.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93d2cd1..3934d3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,22 +70,6 @@ jobs: kill $(cat server.pid) rm server.pid - - name: Remove latest installed platform version - run: | - cd ~/.arduino15/packages/infineon/hardware/psoc - rm -rf * - - - name: copy/link repository to arduino path - run: | - mkdir ~/.arduino15/packages/infineon/hardware/psoc/0.0.0 - cp -a ./* ~/.arduino15/packages/infineon/hardware/psoc/0.0.0 - cd ~/.arduino15/packages/infineon/hardware/psoc/0.0.0 - - - name: copy/link arduino core api path - run: | - mkdir ~/.arduino15/packages/infineon/hardware/psoc/0.0.0/cores/psoc/api - cp -a ~/.arduino15/packages/infineon/hardware/psoc/0.0.0/extras/arduino-core-api/api/* ~/.arduino15/packages/infineon/hardware/psoc/0.0.0/cores/psoc/api - # Compile the sample code for the selected board and board support package with the arduino compiler - name: Compile Sketch run: |