From 0b136c8418e6160df9d55a03acd98359c1156e71 Mon Sep 17 00:00:00 2001 From: fastium Date: Sun, 20 Oct 2024 15:33:13 +0200 Subject: [PATCH] ADD CI/CD yml file to build tests --- .github/ISSUE_TEMPLATE/bug_report.md | 58 ++++++++++++++++++++++++++++ .github/workflows/build-test.yml | 31 +++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/workflows/build-test.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..e9dd352 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,58 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: 'type: bug' +assignees: '' + +--- + + + +### Description of defect + + + + +#### Target(s) affected by this defect ? + + +#### Toolchain(s) (name and version) displaying this defect ? + + +#### What version of Mbed-os are you using (tag or sha) ? + + + +#### What version(s) of tools are you using. List all that apply (E.g. mbed-cli) + + +#### How is this defect reproduced ? diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..b27e936 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,31 @@ +name: Build test application +on: + pull_request: + push: + +jobs: + build-cli-v1: + container: + image: ghcr.io/armmbed/mbed-os-env:master-2022.05.21t04.23.55 + + runs-on: ubuntu-20.04 + + strategy: + matrix: + target: [DISCO_H747I] + profile: [develop, debug, release] + tests: [tests-simple-test-always-succeed, tests-simple-test-ptr-test] + + + steps: + - + name: checkout + uses: actions/checkout@v2 + + - + name: build-test + run: | + set -e + mbed deploy + mbed test -t GCC_ARM -m ${{ matrix.target }} --profile ${{ matrix.profile }} --compile -n ${{ matrix.tests }} + mbed compile -t GCC_ARM -m ${{ matrix.target }} --profile ${{ matrix.profile }}