Skip to content

Build examples

Build examples #1053

Workflow file for this run

#
# This file is part of Astarte.
#
# Copyright 2018-2023 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#
name: Build examples
on:
# Run when pushing to stable branches
push:
branches:
- 'master'
- 'release-*'
# Run on branch/tag creation
create:
# Run on pull requests
pull_request:
jobs:
build-examples:
strategy:
matrix:
idf-version:
- "4.4"
- "5.0"
- "5.1"
example:
- "aggregates"
- "datastreams"
- "encryption"
- "non_volatile_storage"
- "properties"
- "registration"
- "toggle_led"
runs-on: ubuntu-latest
container: espressif/idf:release-v${{ matrix.idf-version }}
steps:
- uses: actions/checkout@v4
- name: Build
shell: bash
working-directory: ./examples/${{ matrix.example }}
run: |
. $IDF_PATH/export.sh
idf.py reconfigure
idf.py build
# Print component size info
idf.py size-components