Skip to content

Commit

Permalink
Merge pull request #16 from ZettaScaleLabs/java_compatible_kotlin_bin…
Browse files Browse the repository at this point in the history
…dings

Java compatible kotlin bindings
  • Loading branch information
Mallets authored Dec 15, 2023
2 parents ac71d8a + acc6783 commit dfb1e34
Show file tree
Hide file tree
Showing 184 changed files with 12,029 additions and 7,996 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Report a bug
description: |
Create a bug report to help us improve Zenoh.
title: "[Bug] "
labels: ["bug"]
body:
- type: textarea
id: summary
attributes:
label: "Describe the bug"
description: |
A clear and concise description of the expected behaviour and what the bug is.
placeholder: |
E.g. zenoh peers can not automatically establish a connection.
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: To reproduce
description: "Steps to reproduce the behavior:"
placeholder: |
1. Start a subscriber "..."
2. Start a publisher "...."
3. See error
validations:
required: true
- type: textarea
id: system
attributes:
label: System info
description: "Please complete the following information:"
placeholder: |
- Platform: [e.g. Ubuntu 20.04 64-bit]
- CPU [e.g. AMD Ryzen 3800X]
- Zenoh version/commit [e.g. 6f172ea985d42d20d423a192a2d0d46bb0ce0d11]
validations:
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: false
contact_links:
- name: Ask a question
url: https://github.com/eclipse-zenoh/roadmap/discussions/categories/zenoh
about: Open to the Zenoh community. Share your feedback with the Zenoh team.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Request a feature
description: |
Suggest a new feature specific to this repository. NOTE: for generic Zenoh ideas use "Ask a question".
body:
- type: markdown
attributes:
value: |
**Guidelines for a good issue**
*Is your feature request related to a problem?*
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
*Describe the solution you'd like*
A clear and concise description of what you want to happen.
*Describe alternatives you've considered*
A clear and concise description of any alternative solutions or features you've considered.
*Additional context*
Add any other context about the feature request here.
- type: textarea
id: feature
attributes:
label: "Describe the feature"
validations:
required: true
27 changes: 13 additions & 14 deletions Makefile → .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017, 2020 ADLINK Technology Inc.
# Copyright (c) 2023 ZettaScale Technology
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -9,18 +9,17 @@
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# ADLINK zenoh team, <zenoh@adlink-labs.tech>
# ZettaScale Zenoh Team, <zenoh@zettascale.tech>
#

# Minimal Makefile calling Apache Maven

.PHONY: all install clean

all:
mvn install

install: all
@echo ""

clean:
mvn clean
changelog:
categories:
- title: New features 🎉
labels:
- enhancement
- title: Bug fixes 🐞
labels:
- bug
- title: Other changes
labels:
- "*"
36 changes: 0 additions & 36 deletions .github/workflows/build-release.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI

on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
schedule:
- cron: "0 6 * * 1-5"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
ci:
name: Build on ${{ matrix.os }}
runs-on: [ "${{ matrix.os }}" ]
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest ]

steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26
add-to-path: false
link-to-sdk: true

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
components: rustfmt, clippy

- name: Cargo Format
working-directory: zenoh-jni
run: cargo fmt --all --check

- name: Clippy Check
working-directory: zenoh-jni
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Check for feature leaks
working-directory: zenoh-jni
run: cargo test --no-default-features

- name: Build Zenoh-JNI
working-directory: zenoh-jni
run: cargo build

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Gradle Test
run: gradle jvmTest --info
32 changes: 32 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Documentation

on:
release:
types: [published]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build_doc_and_deploy:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26
add-to-path: false
link-to-sdk: true

- name: Build doc
run: gradle dokkaHtml

- name: Deploy doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./zenoh-kotlin/build/dokka/html
58 changes: 58 additions & 0 deletions .github/workflows/publish_android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish

on:
release:
types: [published]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
publish_android_package:
name: Publish Android Package to Github Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r26
add-to-path: false
link-to-sdk: true

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
components: rustfmt, clippy

- name: Setup Rust toolchains
run: |
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
- name: Gradle Wrapper
run: |
gradle wrapper
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Gradle Publish Android Package
uses: gradle/gradle-build-action@v2
with:
arguments: publishAndroidReleasePublicationToGithubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit dfb1e34

Please sign in to comment.