Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Bug report
description: Report a reproducible correctness, build, API, or runtime problem
title: "[Bug]: "
labels: []
body:
- type: markdown
attributes:
value: Thanks for taking the time to report a bug. Please keep performance-only regressions separate from correctness failures where possible.
- type: textarea
id: summary
attributes:
label: What happened?
description: Describe the observed behaviour and what you expected instead.
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Minimal reproduction
description: Include the smallest source/configuration and commands needed to reproduce the problem.
render: shell
validations:
required: true
- type: input
id: commit
attributes:
label: tinyML commit or release
placeholder: e.g. main at abc1234 or v1.0.0
validations:
required: true
- type: dropdown
id: build
attributes:
label: Build tier
options:
- MIT core
- Extended/commercial tier
- Unsure
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: OS, architecture, compiler and version, CMake version, CPU features, and relevant build flags.
placeholder: Ubuntu 24.04, x86_64, GCC 14, CMake 3.30, AVX2, Release
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant logs or output
render: text
- type: checkboxes
id: checks
attributes:
label: Checks
options:
- label: I searched existing issues for the same problem.
required: true
- label: I have not included secrets, private data, or proprietary model/data content.
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Security vulnerability
url: https://github.com/godofecht/tinyML/security/advisories/new
about: Please report security-sensitive issues privately rather than opening a public issue.
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Feature request
description: Propose a new algorithm, API, platform, optimization, or repository capability
title: "[Feature]: "
labels: []
body:
- type: textarea
id: problem
attributes:
label: Problem or use case
description: What concrete problem should tinyML solve?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed solution
description: Describe the desired API, behaviour, algorithm, platform support, or workflow.
validations:
required: true
- type: dropdown
id: tier
attributes:
label: Intended tier
options:
- MIT core
- Extended/commercial tier
- Repository/tooling/docs
- Unsure
validations:
required: true
- type: textarea
id: constraints
attributes:
label: Constraints and trade-offs
description: Include real-time, memory, determinism, dependency, portability, licensing, or numerical constraints that matter.
- type: textarea
id: validation
attributes:
label: How should this be validated?
description: Tests, benchmarks, reference outputs, downstream examples, or acceptance criteria.
- type: checkboxes
id: checks
attributes:
label: Checks
options:
- label: I searched existing issues and the roadmap for an equivalent proposal.
required: true
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
commit-message:
prefix: chore
include: scope
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
build-and-test:
name: ${{ matrix.compiler }} / Release
name: ${{ matrix.compiler }} / ${{ matrix.build_type }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -26,9 +26,11 @@ jobs:
- compiler: GCC
cc: gcc
cxx: g++
build_type: Release
- compiler: Clang
cc: clang
cxx: clang++
build_type: Debug
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
Expand All @@ -43,7 +45,7 @@ jobs:
sudo apt-get install -y ninja-build

- name: Configure
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- name: Build
run: cmake --build build --parallel 2
Expand Down Expand Up @@ -75,10 +77,13 @@ jobs:

- name: Package
run: |
mkdir -p release
cp build/libTinyML.a release/
find build/bin -type f -executable -exec cp {} release/ \; 2>/dev/null || true
tar -czf tinyml-${{ github.ref_name }}-linux-x86_64.tar.gz -C release .
package_dir="tinyml-${{ github.ref_name }}-linux-x86_64"
mkdir -p "$package_dir/lib" "$package_dir/include"
cp build/libTinyML.a "$package_dir/lib/"
cp -R include/. "$package_dir/include/"
cp README.md LICENSE LICENSE-COMMERCIAL.md LICENSING.md "$package_dir/"
tar -czf "$package_dir.tar.gz" "$package_dir"
tar -tzf "$package_dir.tar.gz" | head -80

- name: Publish GitHub release
uses: softprops/action-gh-release@v2
Expand Down
1 change: 1 addition & 0 deletions tests/test_production_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "TinyMLAPI.h"
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <chrono>
Expand Down
Loading