-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `aws-iot-example` has been replaced in the public CI with parallel builds of `keyword-detection` and `speech-recognition` applications with various configurations. Building the Ml Embedded Evaluation Kit requires Python 3.10 and the `libsndfile1-dev` library. Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
- Loading branch information
1 parent
e23bc55
commit 622060d
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2023 Arm Limited and/or its affiliates | ||
# Copyright (c) 2023-2024 Arm Limited and/or its affiliates | ||
# <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
|
@@ -20,6 +20,14 @@ on: | |
jobs: | ||
ubuntu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
application: [keyword-detection, speech-recognition] | ||
audio: [ROM, VSI] | ||
inference: [ETHOS, SOFTWARE] | ||
exclude: | ||
- application: speech-recognition | ||
inference: SOFTWARE | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v3 | ||
|
@@ -29,6 +37,7 @@ jobs: | |
- name: Install python 3 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
architecture: x64 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -37,7 +46,7 @@ jobs: | |
run: | | ||
pip install cmake ninja imgtool cffi intelhex cbor2 cbor jinja2 PyYaml pyelftools | ||
sudo apt-get -y update | ||
sudo apt-get -y install srecord | ||
sudo apt-get -y install srecord libsndfile1-dev | ||
- name: Install GNU Arm toolchain | ||
shell: bash | ||
run: | | ||
|
@@ -56,22 +65,27 @@ jobs: | |
./tools/ci/generate_credentials.sh -f -p applications/aws_iot_example/configs/aws_configs | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ci" | ||
- name: Build the project | ||
- name: Build ${{ matrix.application }} application | ||
shell: bash | ||
run: | | ||
export PATH=$HOME/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin:$PATH | ||
./tools/scripts/build.sh aws-iot-example --toolchain GNU --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem | ||
./tools/scripts/build.sh ${{ matrix.application }} \ | ||
--inference ${{ matrix.inference }} \ | ||
--audio ${{ matrix.audio }} \ | ||
--toolchain GNU \ | ||
--certificate_path $PWD/certificate.pem \ | ||
--private_key_path $PWD/private_key.pem | ||
- name: Copy artifacts | ||
shell: bash | ||
run: | | ||
tar -czf gnu_build.tar.gz \ | ||
build/aws-iot-example_merged.elf \ | ||
build/aws-iot-example-update_signed.bin \ | ||
tar -czf ${{ matrix.application }}_gnu_build.tar.gz \ | ||
build/${{ matrix.application }}_merged.elf \ | ||
build/${{ matrix.application }}-update_signed.bin \ | ||
build/update-signature.txt | ||
- name: Upload Build Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: FRI-build-logs | ||
path: | | ||
${{ github.workspace }}/gnu_build.tar.gz | ||
${{ github.workspace }}/${{ matrix.application }}_gnu_build.tar.gz | ||
retention-days: 5 |