2020-09-26 05:13:56 +03:00
|
|
|
# Perform continuous integration tests on updates and pull requests
|
|
|
|
name: Build test
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-02-10 02:05:41 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-09-26 05:13:56 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
2020-10-30 22:14:39 +03:00
|
|
|
path: ci_cache
|
|
|
|
key: ${{ runner.os }}-build-${{ hashFiles('scripts/ci-install.sh') }}
|
2020-09-26 05:13:56 +03:00
|
|
|
|
|
|
|
- name: Prepare tests
|
2020-10-30 22:14:39 +03:00
|
|
|
run: ./scripts/ci-install.sh
|
2020-09-26 05:13:56 +03:00
|
|
|
|
|
|
|
- name: Test
|
2020-10-30 22:14:39 +03:00
|
|
|
run: ./scripts/ci-build.sh 2>&1
|
2020-09-26 05:13:56 +03:00
|
|
|
|
|
|
|
- name: Upload micro-controller data dictionaries
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: data-dict
|
2020-10-30 22:14:39 +03:00
|
|
|
path: ci_build/dict
|