Skip to content

Commit 223c199

Browse files
authored
Add initial Java binding for Eclipse Cyclone DDS (#1)
1 parent f0c3410 commit 223c199

242 files changed

Lines changed: 31590 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright(c) 2026 Sven Trittler
2+
#
3+
# This program and the accompanying materials are made available under the
4+
# terms of the Eclipse Public License v. 2.0 which is available at
5+
# http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
6+
# v. 1.0 which is available at
7+
# http://www.eclipse.org/org/documents/edl-v10.php.
8+
#
9+
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
10+
11+
# Keep text files and byte-checked upstream fixtures identical on every host.
12+
* text=auto eol=lf

‎.github/maven-settings.xml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright(c) 2026 Sven Trittler
3+
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause -->
4+
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
7+
<servers>
8+
<server>
9+
<id>central</id>
10+
<username>${env.MAVEN_CENTRAL_USERNAME}</username>
11+
<password>${env.MAVEN_CENTRAL_PASSWORD}</password>
12+
</server>
13+
</servers>
14+
<mirrors>
15+
<!-- Avoid Maven Central's shared-runner IP rate limits in CI.
16+
Mirror only Central so consumer-test file repositories still work. -->
17+
<mirror>
18+
<id>google-maven-central</id>
19+
<name>Google Cloud Storage Maven Central mirror</name>
20+
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
21+
<mirrorOf>central</mirrorOf>
22+
</mirror>
23+
</mirrors>
24+
</settings>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright(c) 2026 Sven Trittler
2+
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
3+
name: Native undefined-behavior checks
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
permissions:
9+
contents: read
10+
jobs:
11+
ubsan:
12+
runs-on: ubuntu-24.04
13+
timeout-minutes: 30
14+
env:
15+
UBSAN_OPTIONS: halt_on_error=1:print_stacktrace=1
16+
CYCLONEDDS_URI: '<CycloneDDS><Domain><General><Interfaces><NetworkInterface address="127.0.0.1"/></Interfaces><AllowMulticast>false</AllowMulticast></General><Discovery><ParticipantIndex>auto</ParticipantIndex><Peers><Peer Address="127.0.0.1"/></Peers></Discovery></Domain></CycloneDDS>'
17+
steps:
18+
- uses: actions/checkout@v7
19+
- uses: actions/setup-java@v6
20+
with:
21+
distribution: temurin
22+
java-version: '17'
23+
- name: Build core master or matching release tag and binding with UBSan
24+
env:
25+
CYCLONEDDS_CORE_REF: ${{ github.ref_type == 'tag' && format('refs/tags/{0}', github.ref_name) || 'refs/heads/master' }}
26+
shell: bash
27+
run: |
28+
FLAGS='-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer'
29+
git init "$RUNNER_TEMP/core"
30+
git -C "$RUNNER_TEMP/core" remote add origin https://github.com/eclipse-cyclonedds/cyclonedds.git
31+
git -C "$RUNNER_TEMP/core" fetch --depth 1 origin "$CYCLONEDDS_CORE_REF"
32+
git -C "$RUNNER_TEMP/core" checkout --detach FETCH_HEAD
33+
echo "Cyclone DDS core ref: $CYCLONEDDS_CORE_REF"
34+
git -C "$RUNNER_TEMP/core" rev-parse HEAD
35+
cmake -S "$RUNNER_TEMP/core" -B "$RUNNER_TEMP/core-build" \
36+
-DCMAKE_INSTALL_PREFIX="$RUNNER_TEMP/core-install" -DCMAKE_BUILD_TYPE=Debug \
37+
"-DCMAKE_C_FLAGS=$FLAGS" -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF \
38+
-DENABLE_SECURITY=OFF -DENABLE_SSL=OFF
39+
cmake --build "$RUNNER_TEMP/core-build" --parallel 4
40+
cmake --install "$RUNNER_TEMP/core-build"
41+
cmake -S . -B build -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/core-install" \
42+
-DCYCLONEDDS_CORE_SOURCE_DIR="$RUNNER_TEMP/core" \
43+
-DCMAKE_BUILD_TYPE=Debug "-DCMAKE_C_FLAGS=$FLAGS" -DBUILD_EXAMPLES=OFF
44+
cmake --build build --parallel 4
45+
- name: Run functional and resource stress tests
46+
run: ctest --test-dir build --output-on-failure -j 2 --output-junit test-results.xml
47+
- uses: actions/upload-artifact@v7
48+
if: always()
49+
with:
50+
name: ubsan-diagnostics
51+
path: |
52+
build/Testing/Temporary/*.log
53+
build/test-results.xml
54+
if-no-files-found: ignore

0 commit comments

Comments
 (0)