8bea1a33a8
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Zephyr OS CMake
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: zephyrprojectrtos/ci:latest
|
|
env:
|
|
CMAKE_PREFIX_PATH: /opt/toolchains
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: bacnet-stack
|
|
|
|
- name: Initialize
|
|
working-directory: bacnet-stack
|
|
run: |
|
|
west init -l .
|
|
west update
|
|
|
|
- name: Twister Tests unit_testing
|
|
working-directory: bacnet-stack
|
|
run: |
|
|
rm -rf twister-out.unit_testing &&
|
|
../zephyr/scripts/twister -O twister-out.unit_testing -p unit_testing -T zephyr/tests &&
|
|
for file in CMakeFiles CMakeCache.txt cmake_install.cmake Makefile
|
|
do
|
|
find twister-out.unit_testing -name $file -exec rm -rf {} \; || true
|
|
done
|
|
|
|
- name: Archive firmware
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: firmware
|
|
path: bacnet-stack/twister-out.unit_testing
|