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
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "00:25"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
61 changes: 32 additions & 29 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C/C++ CI
name: C/C++ CI and Maven Package

on:
push:
Expand All @@ -10,37 +10,40 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# os: [centos7, rhel8]
os: [rhel8]
include:
# - os: centos7
# container: "centos:7"
- os: rhel8
container: "oraclelinux:8"
container: ${{ matrix.container }}

container: oraclelinux:8
permissions:
contents: read
steps:
- name: checkout for centos7
if: ${{ matrix.os == 'centos7' }}
uses: actions/checkout@v3

- name: checkout for rhel8
if: ${{ matrix.os == 'rhel8' }}
uses: actions/checkout@v4

- name: install dependencies
run: |
- uses: actions/checkout@v6
- run: |
yum install -y epel-release
yum install -y make gcc-c++ openssl-devel utf8proc-devel

- name: make osptk
run: |
- run: |
cd $GITHUB_WORKSPACE/src
make build
- uses: actions/upload-artifact@v7
with:
name: osptoolkit
path: |
${{ github.workspace }}/lib/libosptk.a
if-no-files-found: error

- name: make test_app
run: |
cd $GITHUB_WORKSPACE/test
make linux
package:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "corretto"
cache: "maven"
server-id: github
- uses: actions/download-artifact@v8
with:
name: osptoolkit
- run: |
mv libosptk.a lib
mvn -B install
49 changes: 49 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: C/C++ CI and Maven Deploy

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
container: oraclelinux:8
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- run: |
yum install -y epel-release
yum install -y make gcc-c++ openssl-devel utf8proc-devel
- run: |
cd $GITHUB_WORKSPACE/src
make build
- uses: actions/upload-artifact@v7
with:
name: osptoolkit
path: |
${{ github.workspace }}/lib/libosptk.a
if-no-files-found: error

package:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "corretto"
cache: "maven"
server-id: github
- uses: actions/download-artifact@v8
with:
name: osptoolkit
- run: |
mv libosptk.a lib
mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91 changes: 91 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# For Maven

target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://maven.apache.org/wrapper/#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar

# Eclipse m2e generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

# For C++

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Linker files
*.ilk

# Debugger Files
*.pdb

# Compiled Dynamic libraries
*.so
*.dylib
*.dll
*.so.*


# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Build directories
build/
Build/
build-*/

# CMake generated files
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
install_manifest.txt
compile_commands.json

# Temporary files
*.tmp
*.log
*.bak
*.swp

# vcpkg
vcpkg_installed/

# debug information files
*.dwo

# test output & cache
Testing/
.cache/
2 changes: 2 additions & 0 deletions RELNOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -818,3 +818,5 @@ Version 4.31.0 - 2025-04-25
Version 4.32.0 - 2025-05-22
* Updated for STIRv2.

Version 4.33.0 - 2026-03-11
* Updated to use GitHub Packages.
2 changes: 1 addition & 1 deletion include/osp/osplibversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define _OSPLIBVERSION_H

#define OSP_CLIENT_TOOLKIT_VERSION_MAJOR 4
#define OSP_CLIENT_TOOLKIT_VERSION_MINOR 32
#define OSP_CLIENT_TOOLKIT_VERSION_MINOR 33
#define OSP_CLIENT_TOOLKIT_VERSION_BUGFIX 0

#endif /* _OSPLIBVERSION_H */
133 changes: 133 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<!-- Project Coordinates -->
<modelVersion>4.0.0</modelVersion>

<groupId>com.transnexus.c</groupId>
<artifactId>osptoolkit</artifactId>
<version>${revision}+${profile.id}</version>
<packaging>pom</packaging>

<!-- Project Description -->
<name>OSPToolkit</name>
<url>https://github.com/TransNexus/osptoolkit</url>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/TransNexus/osptoolkit</url>
</repository>
</distributionManagement>

<!-- Build Configuration -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>21</maven.compiler.release>
<revision>4.33.0</revision>
</properties>

<!-- Build Settings -->
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.4</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.4</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.21.0</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.9.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-help-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<inlineDescriptors>
<inlineDescriptor>
<id>distribute</id>
<formats>
<format>tar.gz</format>
</formats>
<files>
<file>
<source>${project.basedir}/RELNOTES.txt</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
<fileSets>
<fileSet>
<directory>
${project.basedir}/include</directory>
<outputDirectory>/include</outputDirectory>
</fileSet>
<fileSet>
<directory>
${project.basedir}/lib</directory>
<outputDirectory>/lib</outputDirectory>
</fileSet>
</fileSets>
</inlineDescriptor>
</inlineDescriptors>
</configuration>
<executions>
<execution>
<id>build-package</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<!-- Profiles -->
<profiles>
<profile>
<id>rhel8</id>
<properties>
<profile.id>rhel8</profile.id>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>
</project>
Loading