Add protobufs repo as git submodule (#882)
* feat: add protobufs git submodule * fixes * fixed publishing issue * fixed lockfile
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<!-- Describe what you are intending to change -->
|
||||
|
||||
# What does this PR do?
|
||||
|
||||
<!-- Please remove or replace the issue url -->
|
||||
|
||||
> [Related Issue](https://github.com/meshtastic/protobufs/issues/0)
|
||||
|
||||
## Checklist before merging
|
||||
|
||||
- [ ] All top level messages commented
|
||||
- [ ] All enum members have unique descriptions
|
||||
|
||||
|
||||
### New Hardware Model Acceptance Policy
|
||||
|
||||
Due to limited availability and ongoing support, new Hardware Models will only be accepted from [Meshtastic Backers and Partners](https://meshtastic.com/). The Meshtastic team reserves the right to make exceptions to this policy.
|
||||
|
||||
#### Alternative for Community Contributors
|
||||
|
||||
You are welcome to use one of the existing DIY hardware models in your PlatformIO environment and create a pull request in the firmware project. Please note the following conditions:
|
||||
|
||||
- The device will **not** be officially supported by the core Meshtastic team.
|
||||
- The device will **not** appear in the [Web Flasher](https://flasher.meshtastic.org/) or Github release assets.
|
||||
- You will be responsible for ongoing maintenance and support.
|
||||
- Community-contributed / DIY hardware models are considered experimental and will likely have limited or no testing.
|
||||
|
||||
#### Getting Official Support
|
||||
|
||||
To have your hardware model officially supported and included in the Meshtastic ecosystem, consider becoming a Meshtastic Backer or Partner. Visit [meshtastic.com](https://meshtastic.com/) for more information about partnership opportunities.
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
name: Push commit to schema registry
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Push to schema registry
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Push to schema registry
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
push: true
|
||||
@@ -0,0 +1,71 @@
|
||||
name: Create tag
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
increment_type:
|
||||
type: choice
|
||||
description: Select the type of version increment
|
||||
required: true
|
||||
options:
|
||||
- patch
|
||||
- minor
|
||||
- major
|
||||
|
||||
jobs:
|
||||
increment_version:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- id: version
|
||||
name: Get current version
|
||||
run: |
|
||||
VERSION=$(git describe --abbrev=0 --tags)
|
||||
|
||||
# Split version into major, minor, and patch
|
||||
MAJOR=$(echo $VERSION | awk -F '.' '{print $1}' | cut -c 2-)
|
||||
MINOR=$(echo $VERSION | awk -F '.' '{print $2}')
|
||||
PATCH=$(echo $VERSION | awk -F '.' '{print $3}')
|
||||
|
||||
# Increment the appropriate part of the version
|
||||
if [[ ${{ inputs.increment_type }} == "patch" ]]; then
|
||||
PATCH=$((PATCH + 1))
|
||||
elif [[ ${{ inputs.increment_type }} == "minor" ]]; then
|
||||
MINOR=$((MINOR + 1))
|
||||
PATCH=0
|
||||
elif [[ ${{ inputs.increment_type }} == "major" ]]; then
|
||||
MAJOR=$((MAJOR + 1))
|
||||
MINOR=0
|
||||
PATCH=0
|
||||
fi
|
||||
|
||||
# Update the version
|
||||
echo "NEW_VERSION=v$MAJOR.$MINOR.$PATCH" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
name: Meshtastic Protobufs ${{ steps.version.outputs.NEW_VERSION }}
|
||||
tag: ${{ steps.version.outputs.NEW_VERSION }}
|
||||
generateReleaseNotes: true
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
setup_only: true
|
||||
|
||||
- name: Push to schema registry
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
|
||||
run: |
|
||||
buf push --tag ${{ steps.version.outputs.NEW_VERSION }}
|
||||
@@ -0,0 +1,30 @@
|
||||
name: Push new version to schema registry
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Buf
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
setup_only: true
|
||||
|
||||
- name: Push to schema registry
|
||||
env:
|
||||
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
|
||||
run: |
|
||||
buf push --tag ${{ github.ref_name }}
|
||||
@@ -0,0 +1,23 @@
|
||||
name: pull-request
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on: pull_request
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Buf PR Checks
|
||||
uses: bufbuild/buf-action@v1.2.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
token: ${{ secrets.BUF_TOKEN }}
|
||||
format: true
|
||||
lint: true
|
||||
breaking: true
|
||||
Reference in New Issue
Block a user