From edc5bedc4926134230deb18b9c7c9c00f691d81f Mon Sep 17 00:00:00 2001 From: MiloradCvjetkovic Date: Wed, 8 Jul 2026 14:53:00 +0200 Subject: [PATCH] Update workflows --- .../AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml | 126 ------------------ .../workflows/{build.yml => Build_AC6.yml} | 2 +- ...sim_AppKit-E7_USB.yml => Test_Alif_E7.yml} | 10 +- .github/workflows/Test_Alif_E8.yml | 109 +++++++++++++++ .github/workflows/Test_ST_KeywordSpotting.yml | 109 +++++++++++++++ .../workflows/Test_ST_MotionRecognition.yml | 109 +++++++++++++++ .github/workflows/ac6_test_build.yaml | 76 ----------- .github/workflows/gcc_test_build.yaml | 76 ----------- README.md | 10 +- 9 files changed, 341 insertions(+), 286 deletions(-) delete mode 100644 .github/workflows/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml rename .github/workflows/{build.yml => Build_AC6.yml} (96%) rename .github/workflows/{run_on_sim_AppKit-E7_USB.yml => Test_Alif_E7.yml} (93%) create mode 100644 .github/workflows/Test_Alif_E8.yml create mode 100644 .github/workflows/Test_ST_KeywordSpotting.yml create mode 100644 .github/workflows/Test_ST_MotionRecognition.yml delete mode 100644 .github/workflows/ac6_test_build.yaml delete mode 100644 .github/workflows/gcc_test_build.yaml diff --git a/.github/workflows/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml b/.github/workflows/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml deleted file mode 100644 index 612795d..0000000 --- a/.github/workflows/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml +++ /dev/null @@ -1,126 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022-2025 Arm Limited and/or its -# affiliates -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Algorithm Test ST B-U585I-IOT02A (Motion Recognition) -on: - - workflow_dispatch: - #pull_request: - # branches: [main] - #push: - # branches: [main] - #schedule: - # - cron: '00 20 * * 6' - -jobs: - CI: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Activate vcpkg - uses: ARM-software/cmsis-actions/vcpkg@v1 - with: - config: ".ci/vcpkg-configuration-AC6.json" - - - name: Activate Arm tool license - uses: ARM-software/cmsis-actions/armlm@v1 - - - name: Install python - uses: actions/setup-python@v6 - with: - python-version: '3.9' - - - name: Install PyYAML in .python_deps - run: | - mkdir -p .python_deps - python -m pip install --target .python_deps pyyaml - - - name: Cache downloaded packs - uses: actions/cache@v5 - with: - key: SDS - path: /home/runner/.cache/arm/packs/.Download - - - name: Rename DataOutput.N.sds -> DataOutput.N.ref.sds - working-directory: ./ST/B-U585I-IOT02A/MotionRecognition/algorithm/SDS Recordings - run: | - - for file in DataOutput.*.sds; do - - # Skip if no matching files - [ -e "$file" ] || continue - - # Insert ".ref" before .sds - newname="${file%.sds}.ref.sds" - - echo "Renaming: $file -> $newname" - # Use git mv so the rename is tracked; fall back to mv if file is untracked - git mv --force -- "$file" "$newname" 2>/dev/null || mv -- "$file" "$newname" - done - - - name: Build AlgorithmTest for ST B-U585I-IOT2A - working-directory: ./ST/B-U585I-IOT02A/MotionRecognition - run: | - cbuild SDS.csolution.yml --context AlgorithmTest.DebugPlay+AVH-SSE-300 --packs - - - name: Execute Test cases - working-directory: ./ST/B-U585I-IOT02A/MotionRecognition - env: - PYTHONPATH: ${{ github.workspace }}/.python_deps - run: | - cp ../../../.ci/sdsio.yml . # configure test case execution - FVP_Corstone_SSE-300 -f Board/Corstone-300/fvp_config.txt -a out/AlgorithmTest/AVH-SSE-300/DebugPlay/AlgorithmTest.axf - - - name: Compare SDS output files - working-directory: ./ST/B-U585I-IOT02A/MotionRecognition/algorithm/SDS Recordings - run: | - - mkdir -p ../diff_artifacts # Create folder outside the recordings directory - - # Find all *.ref.sds files - for file_ref in DataOutput.*.ref.sds; do - # Strip ".ref" to get the corresponding original file - file_orig="${file_ref/.ref/}" - - echo "Comparing $file_ref with $file_orig ..." - - if cmp -s "$file_ref" "$file_orig"; then - echo " ✅ Files are identical" - else - echo " ❌ Files differ" - # Copy both versions into the diff_artifacts folder - cp "$file_ref" "$file_orig" ../diff_artifacts/ - fi - done - - - name: Upload differing SDS files - uses: actions/upload-artifact@v7 - with: - name: sds-diff-files - path: ST/B-U585I-IOT02A/MotionRecognition/algorithm/diff_artifacts - - - name: Fail if diffs found - working-directory: ./ST/B-U585I-IOT02A/MotionRecognition/algorithm - run: | - if [ -n "$(ls -A diff_artifacts)" ]; then - echo "❌ Differences found in SDS files!" - exit 1 - else - echo "✅ No differences found." - fi \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/Build_AC6.yml similarity index 96% rename from .github/workflows/build.yml rename to .github/workflows/Build_AC6.yml index a186f3c..3df1090 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/Build_AC6.yml @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Build all examples +name: Build examples with AC6 on: workflow_dispatch: pull_request: diff --git a/.github/workflows/run_on_sim_AppKit-E7_USB.yml b/.github/workflows/Test_Alif_E7.yml similarity index 93% rename from .github/workflows/run_on_sim_AppKit-E7_USB.yml rename to .github/workflows/Test_Alif_E7.yml index 9fac8f2..3bc97aa 100644 --- a/.github/workflows/run_on_sim_AppKit-E7_USB.yml +++ b/.github/workflows/Test_Alif_E7.yml @@ -14,13 +14,19 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Build and run AppKit-E7_USB example on simulator +name: Test Alif AppKit-E7 example on: workflow_dispatch: pull_request: branches: [main] + paths: + - ".github/workflows/Test_Alif_E7.yml" + - "Alif/AppKit-E7_USB/**" push: branches: [main] + paths: + - ".github/workflows/Test_Alif_E7.yml" + - "Alif/AppKit-E7_USB/**" env: DIR: ./Alif/AppKit-E7_USB @@ -97,7 +103,7 @@ jobs: if: always() uses: actions/upload-artifact@v7 with: - name: Run_on_sim_AppKit-E7_USB + name: Test_Alif_E7 path: | ${{env.DIR}}/out ${{env.DIR}}/algorithm/SDS Recordings diff --git a/.github/workflows/Test_Alif_E8.yml b/.github/workflows/Test_Alif_E8.yml new file mode 100644 index 0000000..8d0e297 --- /dev/null +++ b/.github/workflows/Test_Alif_E8.yml @@ -0,0 +1,109 @@ +# Copyright (c) 2026 Arm Limited (or its affiliates). All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Test Alif DevKit-E8 example +on: + workflow_dispatch: + pull_request: + branches: [main] + paths: + - ".github/workflows/Test_Alif_E8.yml" + - "Alif/DevKit-E8_ETH/**" + push: + branches: [main] + paths: + - ".github/workflows/Test_Alif_E8.yml" + - "Alif/DevKit-E8_ETH/**" + +env: + DIR: ./Alif/DevKit-E8_ETH + +jobs: + CI: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout this repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + + - name: Setup Python 3.13 + uses: actions/setup-python@v6 + with: + python-version: '3.13' + + - name: Install required Python packages + run: pip install pyyaml asyncio + + - name: Install vcpkg + uses: ARM-software/cmsis-actions/setup-vcpkg@v1 + with: + version: 2026.04.27 + + - name: Install required tools + uses: ARM-software/cmsis-actions/vcpkg@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + with: + config: "./vcpkg-configuration.json" + cache: "Tools" + + - name: Activate Arm tool license + uses: ARM-software/cmsis-actions/armlm@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + + - name: Initialize CMSIS pack root folder + run: | + cpackget init https://www.keil.com/pack/index.pidx + cpackget update-index + + - name: Cache CMSIS packs + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + key: cmsis-packs-${{ hashFiles('**/*.csolution.yml', '**/*.cproject.yml', '**/*.clayer.yml') }} + restore-keys: | + cmsis-packs- + path: /home/runner/.cache/arm/packs + + - name: Build AlgorithmTest project for simulator target (SSE-320-U85) + working-directory: ${{env.DIR}} + run: | + cbuild SDS.csolution.yml --context AlgorithmTest.Debug+SSE-320-U85 --packs --update-rte + + - name: Run on simulator + working-directory: ${{env.DIR}} + run: | + FVP_Corstone_SSE-320 -f ./Board/Corstone-320/fvp_config.txt -a ./out/AlgorithmTest/SSE-320-U85/Debug/AlgorithmTest.hex --simlimit 120 || true + + - name: Print sdsio.log file + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + cat "sdsio.log" + + - name: Compare ML_Out.0.sds and ML_Out.0.p.sds files + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + if cmp -s "ML_Out.0.sds" "ML_Out.0.p.sds"; then + echo "::notice title=PASS::ML_Out.0.sds and ML_Out.0.p.sds files are identical." + else + echo "::error title=FAIL::ML_Out.0.sds and ML_Out.0.p.sds files are different. See uploaded artifacts for details." + exit 1 + fi + + - name: Upload build and run artifacts + if: always() + uses: actions/upload-artifact@v7 + with: + name: Test_Alif_E8 + path: | + ${{env.DIR}}/out + ${{env.DIR}}/algorithm/SDS Recordings diff --git a/.github/workflows/Test_ST_KeywordSpotting.yml b/.github/workflows/Test_ST_KeywordSpotting.yml new file mode 100644 index 0000000..801c100 --- /dev/null +++ b/.github/workflows/Test_ST_KeywordSpotting.yml @@ -0,0 +1,109 @@ +# Copyright (c) 2026 Arm Limited (or its affiliates). All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Test ST Keyword Spotting +on: + workflow_dispatch: + pull_request: + branches: [main] + paths: + - ".github/workflows/Test_ST_KeywordSpotting.yml" + - "ST/B-U585I-IOT02A/KeywordSpotting/**" + push: + branches: [main] + paths: + - ".github/workflows/Test_ST_KeywordSpotting.yml" + - "ST/B-U585I-IOT02A/KeywordSpotting/**" + +env: + DIR: ./ST/B-U585I-IOT02A/KeywordSpotting + +jobs: + CI: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout this repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + + - name: Setup Python 3.13 + uses: actions/setup-python@v6 + with: + python-version: '3.13' + + - name: Install required Python packages + run: pip install pyyaml asyncio + + - name: Install vcpkg + uses: ARM-software/cmsis-actions/setup-vcpkg@v1 + with: + version: 2026.04.27 + + - name: Install required tools + uses: ARM-software/cmsis-actions/vcpkg@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + with: + config: "./vcpkg-configuration.json" + cache: "Tools" + + - name: Activate Arm tool license + uses: ARM-software/cmsis-actions/armlm@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + + - name: Initialize CMSIS pack root folder + run: | + cpackget init https://www.keil.com/pack/index.pidx + cpackget update-index + + - name: Cache CMSIS packs + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + key: cmsis-packs-${{ hashFiles('**/*.csolution.yml', '**/*.cproject.yml', '**/*.clayer.yml') }} + restore-keys: | + cmsis-packs- + path: /home/runner/.cache/arm/packs + + - name: Build AlgorithmTest project for simulator target (SSE-300-U55) + working-directory: ${{env.DIR}} + run: | + cbuild SDS.csolution.yml --context AlgorithmTest.Debug+SSE-300-U55 --packs --update-rte + + - name: Run on simulator + working-directory: ${{env.DIR}} + run: | + FVP_Corstone_SSE-300_Ethos-U55 -f ./Board/Corstone-300/fvp_config.txt -a ./out/AlgorithmTest/SSE-300-U55/Debug/AlgorithmTest.hex --simlimit 120 || true + + - name: Print sdsio.log file + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + cat "sdsio.log" + + - name: Compare ML_Out.0.sds and ML_Out.0.p.sds file sizes + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + if [ "$(stat -c%s "ML_Out.0.sds")" -eq "$(stat -c%s "ML_Out.0.p.sds")" ]; then + echo "::notice title=PASS::ML_Out.0.sds and ML_Out.0.p.sds file sizes are the same." + else + echo "::error title=FAIL::ML_Out.0.sds and ML_Out.0.p.sds file sizes are different. See uploaded artifacts for details." + exit 1 + fi + + - name: Upload build and run artifacts + if: always() + uses: actions/upload-artifact@v7 + with: + name: Test_ST_KeywordSpotting + path: | + ${{env.DIR}}/out + ${{env.DIR}}/algorithm/SDS Recordings diff --git a/.github/workflows/Test_ST_MotionRecognition.yml b/.github/workflows/Test_ST_MotionRecognition.yml new file mode 100644 index 0000000..f2ee6d7 --- /dev/null +++ b/.github/workflows/Test_ST_MotionRecognition.yml @@ -0,0 +1,109 @@ +# Copyright (c) 2026 Arm Limited (or its affiliates). All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Test ST Motion Recognition +on: + workflow_dispatch: + pull_request: + branches: [main] + paths: + - ".github/workflows/Test_ST_MotionRecognition.yml" + - "ST/B-U585I-IOT02A/MotionRecognition/**" + push: + branches: [main] + paths: + - ".github/workflows/Test_ST_MotionRecognition.yml" + - "ST/B-U585I-IOT02A/MotionRecognition/**" + +env: + DIR: ./ST/B-U585I-IOT02A/MotionRecognition + +jobs: + CI: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout this repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + + - name: Setup Python 3.13 + uses: actions/setup-python@v6 + with: + python-version: '3.13' + + - name: Install required Python packages + run: pip install pyyaml asyncio + + - name: Install vcpkg + uses: ARM-software/cmsis-actions/setup-vcpkg@v1 + with: + version: 2026.04.27 + + - name: Install required tools + uses: ARM-software/cmsis-actions/vcpkg@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + with: + config: "./vcpkg-configuration.json" + cache: "Tools" + + - name: Activate Arm tool license + uses: ARM-software/cmsis-actions/armlm@8a50b77681a484568e08f31fb7c2285c4735f682 # v1.3 + + - name: Initialize CMSIS pack root folder + run: | + cpackget init https://www.keil.com/pack/index.pidx + cpackget update-index + + - name: Cache CMSIS packs + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + key: cmsis-packs-${{ hashFiles('**/*.csolution.yml', '**/*.cproject.yml', '**/*.clayer.yml') }} + restore-keys: | + cmsis-packs- + path: /home/runner/.cache/arm/packs + + - name: Build AlgorithmTest project for simulator target (SSE-300-U55) + working-directory: ${{env.DIR}} + run: | + cbuild SDS.csolution.yml --context AlgorithmTest.Debug+SSE-300-U55 --packs --update-rte + + - name: Run on simulator + working-directory: ${{env.DIR}} + run: | + FVP_Corstone_SSE-300_Ethos-U55 -f ./Board/Corstone-300/fvp_config.txt -a ./out/AlgorithmTest/SSE-300-U55/Debug/AlgorithmTest.hex --simlimit 120 || true + + - name: Print sdsio.log file + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + cat "sdsio.log" + + - name: Compare ML_Out.0.sds and ML_Out.0.p.sds files + working-directory: ${{env.DIR}}/algorithm/SDS Recordings + run: | + if cmp -s "ML_Out.0.sds" "ML_Out.0.p.sds"; then + echo "::notice title=PASS::ML_Out.0.sds and ML_Out.0.p.sds files are identical." + else + echo "::error title=FAIL::ML_Out.0.sds and ML_Out.0.p.sds files are different. See uploaded artifacts for details." + exit 1 + fi + + - name: Upload build and run artifacts + if: always() + uses: actions/upload-artifact@v7 + with: + name: Test_ST_MotionRecognition + path: | + ${{env.DIR}}/out + ${{env.DIR}}/algorithm/SDS Recordings diff --git a/.github/workflows/ac6_test_build.yaml b/.github/workflows/ac6_test_build.yaml deleted file mode 100644 index 733a652..0000000 --- a/.github/workflows/ac6_test_build.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022-2025 Arm Limited and/or its -# affiliates -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: SDS-Examples AC6 build test -on: - - workflow_dispatch: - #pull_request: - # branches: [main] - #push: - # branches: [main] - #schedule: - # - cron: '00 20 * * 6' - - -jobs: - CI: - strategy: - matrix: - context: [ - # toolchain, example directory, artifact name, project name, - { tool: AC6, dir: ./Alif/AppKit-E7_USB, art_name: AppKit-E7_USB, proj: SDS, }, - { tool: AC6, dir: ./Alif/AppKit-E8_USB, art_name: AppKit-E8_USB, proj: SDS, }, - { tool: AC6, dir: ./Alif/DevKit-E8_ETH, art_name: DevKit-E8_ETH, proj: SDS, }, - { tool: AC6, dir: ./Alif/DevKit-E8_USB, art_name: DevKit-E8_USB, proj: SDS, }, - { tool: AC6, dir: ./ST/B-U585I-IOT02A/MotionRecognition, art_name: MotionRecognition, proj: SDS, }, - { tool: AC6, dir: ./ST/B-U585I-IOT02A/KeywordSpotting, art_name: KeywordSpotting, proj: SDS, }, - ] - - fail-fast: false - - runs-on: ubuntu-latest - - steps: - - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Activate vcpkg - uses: ARM-software/cmsis-actions/vcpkg@v1 - with: - config: ".ci/vcpkg-configuration.json" - - - name: Activate Arm tool license - uses: ARM-software/cmsis-actions/armlm@v1 - - - name: Cache downloaded packs - uses: actions/cache@v5 - with: - key: SDS - path: /home/runner/.cache/arm/packs/.Download - - - name: ${{matrix.context.tool}} Build-Test for context ${{matrix.context.proj}} - working-directory: ${{matrix.context.dir}} - run: | - cbuild ${{matrix.context.proj}}.csolution.yml --toolchain ${{matrix.context.tool}} --packs - - - name: Upload output for context ${{matrix.context.proj}} - uses: actions/upload-artifact@v7 - with: - name: ${{matrix.context.tool}}_build_${{matrix.context.art_name}} - path: ${{matrix.context.dir}}/out - diff --git a/.github/workflows/gcc_test_build.yaml b/.github/workflows/gcc_test_build.yaml deleted file mode 100644 index 9999300..0000000 --- a/.github/workflows/gcc_test_build.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# SPDX-FileCopyrightText: Copyright 2022-2025 Arm Limited and/or its -# affiliates -# SPDX-License-Identifier: Apache-2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: SDS-Examples GCC build test -on: - - workflow_dispatch: - #pull_request: - # branches: [main] - #push: - # branches: [main] - #schedule: - # - cron: '00 20 * * 6' - - -jobs: - CI: - strategy: - matrix: - context: [ - # toolchain, example directory, artifact name, project name, - { tool: GCC, dir: ./Alif/AppKit-E7_USB, art_name: AppKit-E7_USB, proj: SDS, }, - { tool: GCC, dir: ./Alif/AppKit-E8_USB, art_name: AppKit-E8_USB, proj: SDS, }, - { tool: GCC, dir: ./Alif/DevKit-E8_ETH, art_name: DevKit-E8_ETH, proj: SDS, }, - { tool: GCC, dir: ./Alif/DevKit-E8_USB, art_name: DevKit-E8_USB, proj: SDS, }, -# { tool: GCC, dir: ./ST/B-U585I-IOT02A/MotionRecognition, art_name: MotionRecognition, proj: SDS, }, -# { tool: GCC, dir: ./ST/B-U585I-IOT02A/KeywordSpotting, art_name: KeywordSpotting, proj: SDS, }, - ] - - fail-fast: false - - runs-on: ubuntu-latest - - steps: - - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Activate vcpkg - uses: ARM-software/cmsis-actions/vcpkg@v1 - with: - config: ".ci/vcpkg-configuration.json" - - - name: Activate Arm tool license - uses: ARM-software/cmsis-actions/armlm@v1 - - - name: Cache downloaded packs - uses: actions/cache@v5 - with: - key: SDS - path: /home/runner/.cache/arm/packs/.Download - - - name: ${{matrix.context.tool}} Build-Test for context ${{matrix.context.proj}} - working-directory: ${{matrix.context.dir}} - run: | - cbuild ${{matrix.context.proj}}.csolution.yml --toolchain ${{matrix.context.tool}} --packs - - - name: Upload output for context ${{matrix.context.proj}} - uses: actions/upload-artifact@v7 - with: - name: ${{matrix.context.tool}}_build_${{matrix.context.art_name}} - path: ${{matrix.context.dir}}/out - diff --git a/README.md b/README.md index e291c41..e85dfa8 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ [![License](https://img.shields.io/github/license/Arm-Examples/Safety-Example-STM32?label)](https://github.com/Arm-Examples/Safety-Example-STM32/blob/main/LICENSE) -[![Build](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/build.yml?logo=arm&logoColor=0091bd&label=Build)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/build.yml) -[![Run on sim AppKit-E7_USB](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/run_on_sim_AppKit-E7_USB.yml?logo=arm&logoColor=0091bd&label=Run%20on%20sim%20AppKit-E7_USB)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/run_on_sim_AppKit-E7_USB.yml) -[![Algorithm Test ST/B-U585I-IOT02A/MotionRecognition](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml?logo=arm&logoColor=0091bd&label=Algorithm%20Test%20ST/B-U585I-IOT02A/MotionRecognition)](./.github/workflows/AlgorithmTest_ST_B-U585I-IOT02A_MR.yaml) -[![AC6 Test build](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/ac6_test_build.yaml?logo=arm&logoColor=0091bd&label=AC6_Test_build)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/ac6_test_build.yaml) -[![GCC Test build](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/gcc_test_build.yaml?logo=arm&logoColor=0091bd&label=GCC_Test_build)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/gcc_test_build.yaml) +[![Build_AC6](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/Build_AC6.yml?logo=arm&logoColor=0091bd&label=Build%20examples%20with%20AC6)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/Build_AC6.yml) +[![Test_Alif_E7](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/Test_Alif_E7.yml?logo=arm&logoColor=0091bd&label=Test%20Alif%20AppKit-E7%20example)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/Test_Alif_E7.yml) +[![Test_Alif_E8](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/Test_Alif_E8.yml?logo=arm&logoColor=0091bd&label=Test%20Alif%20DevKit-E8%20example)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/Test_Alif_E8.yml) +[![Test_ST_KeywordSpotting](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/Test_ST_KeywordSpotting.yml?logo=arm&logoColor=0091bd&label=Test%20ST%20Keyword%20Spotting)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/Test_ST_KeywordSpotting.yml) +[![Test_ST_MotionRecognition](https://img.shields.io/github/actions/workflow/status/Arm-Examples/SDS-Examples/Test_ST_MotionRecognition.yml?logo=arm&logoColor=0091bd&label=Test%20ST%Motion%20Recognition)](https://github.com/Arm-Examples/SDS-Examples/tree/main/.github/workflows/Test_ST_MotionRecognition.yml) # SDS-Examples