ADD CI/CD yml file to build tests
This commit is contained in:
31
.github/workflows/build-test.yml
vendored
Normal file
31
.github/workflows/build-test.yml
vendored
Normal file
@ -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 }}
|
Reference in New Issue
Block a user