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