Skip to content
Draft
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
20 changes: 20 additions & 0 deletions .github/badges/spec-compliance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions .github/badges/spec-version.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions .github/workflows/create-badges.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# ********************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

name: Create README badges
on:
push:
branches: [main]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
spec-compliance:
uses: eclipse-uprotocol/ci-cd/.github/workflows/requirements-tracing.yaml@main
with:
env-file-suffix: "oft-current"

create-readme-badges:
name: Create README badges
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- spec-compliance
steps:
- name: check up-spec version
id: check-up-spec-version
uses: eclipse-uprotocol/ci-cd/.github/actions/check-spec-version@main

- name: create up-spec version badge
uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-version-badge@main
with:
current-version: ${{ steps.check-up-spec-version.outputs.current-version }}
latest-version: ${{ steps.check-up-spec-version.outputs.latest-version }}
is-latest: ${{ steps.check-up-spec-version.outputs.is-latest }}

- name: create up-spec compliance badge
uses: eclipse-uprotocol/ci-cd/.github/actions/create-spec-compliance-badge@main
with:
oft-exit-code: ${{ needs.spec-compliance.outputs.oft-exit-code }}

- name: Commit badge
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ".github/badges"
git commit -m "Add/Update badges" || echo "No changes to commit"

- name: Push badge commit
uses: ad-m/github-push-action@master
if: ${{ success() }}
with:
branch: ${{ github.head_ref }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
with:
name: license-report
path: dist/license/

- name: Upload license report to release
uses: svenstaro/upload-release-action@v2
id: upload_license_report
Expand All @@ -90,6 +91,7 @@ jobs:
with:
name: tracing-report-html
path: dist/tracing/

- name: Upload requirements tracing report to release
uses: svenstaro/upload-release-action@v2
id: upload_requirements_tracing_report
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Eclipse uProtocol Rust library

[![badge](.github/badges/spec-version.svg)](https://github.com/eclipse-uprotocol/up-spec)
[![badge](.github/badges/spec-compliance.svg)](https://github.com/eclipse-uprotocol/up-spec)

This is the [uProtocol v1.6.0-alpha.7 Language Library](https://github.com/eclipse-uprotocol/uprotocol-spec/blob/v1.6.0-alpha.7/languages.adoc) for the Rust programming language.

The crate can be used to
Expand Down