Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
645e0c1
Update cmake-multi-platform.yml
robert-burger Jul 9, 2025
739fc97
Create build_deb.yaml
robert-burger Jul 9, 2025
feb5cc9
Update build_deb.yaml
robert-burger Jul 9, 2025
6c7c77b
Update configure.ac
robert-burger Jul 9, 2025
d69b9b5
Update rules
robert-burger Jul 9, 2025
f4fb15a
fix: return error code if pthread_setschedparam fails
robert-burger Jul 10, 2025
8b3c09c
chore: add newline
robert-burger Jul 10, 2025
af27ef5
Merge branch 'release/0.1.0' into feat/tag-build
robert-burger Jul 10, 2025
d0e4471
add: coverage build
robert-burger Jul 10, 2025
adad223
add: coverage build
robert-burger Jul 10, 2025
33a6750
add: build to rmc-build.yaml
robert-burger Jul 10, 2025
31f961c
fix: indentation level of rmc-build.yaml
robert-burger Jul 10, 2025
b69d001
change: skippin mutex noprioinheritance check when permission denied!
robert-burger Jul 10, 2025
58870be
Update build_deb.yaml
robert-burger Jul 10, 2025
698c74f
Update build_deb.yaml
robert-burger Jul 10, 2025
23dd2c0
Update build_deb.yaml
robert-burger Jul 14, 2025
f5b4d75
Update build_deb.yaml
robert-burger Jul 14, 2025
c918511
Update build_deb.yaml
robert-burger Jul 14, 2025
9dee24d
change: deb build with PACKAGE_VERSION from git
robert-burger Jul 14, 2025
2d1d5b8
del: old configure ac
robert-burger Jul 14, 2025
85c1f91
add: update of debian changelog
robert-burger Jul 14, 2025
ace1d27
change: calling with bash
robert-burger Jul 14, 2025
4da76b9
change: fetch all branches
robert-burger Jul 14, 2025
07667e7
change: also fetch tags
robert-burger Jul 14, 2025
7af6b71
change: also fetch tags
robert-burger Jul 14, 2025
73be889
change: also fetch tags
robert-burger Jul 14, 2025
0e43f63
change: sudo not needed in container runner
robert-burger Jul 14, 2025
426a339
change: reorder steps
robert-burger Jul 14, 2025
fe0e984
change: add safe.directory for git clone
robert-burger Jul 14, 2025
00e6fd9
chore: syntax fix
robert-burger Jul 14, 2025
9ae2427
update: debian changelog
robert-burger Jul 15, 2025
3937fb6
update: debian package generation
robert-burger Jul 15, 2025
f95e67b
change: add install of python3-pip
robert-burger Jul 15, 2025
62c4c6e
change: not publishing debug sym objects
robert-burger Jul 15, 2025
18a40eb
change: pip install in container
robert-burger Jul 15, 2025
f466331
change: using cloudsmith action
robert-burger Jul 15, 2025
509f9ef
change: using pip to install cloudsmith
robert-burger Jul 15, 2025
31c0b03
change: using pip to install cloudsmith
robert-burger Jul 15, 2025
41b3e83
add: version to deb package
robert-burger Jul 15, 2025
475afb8
fix: cloudsmith upload
robert-burger Jul 15, 2025
13e72ad
change: cloudsmith url
robert-burger Jul 15, 2025
63a2009
change: upload to os/version subdirs
robert-burger Jul 15, 2025
adb3a66
add: IMAGE to sanitized name
robert-burger Jul 15, 2025
cf59d5f
fix: cloudsmith upload url
robert-burger Jul 15, 2025
5a5e4d2
change: trying two-step cloudsmith upload
robert-burger Jul 15, 2025
f38ae0d
fix: yaml syntax
robert-burger Jul 15, 2025
f57808c
fix: yaml syntax
robert-burger Jul 15, 2025
b54461c
fix: file name
robert-burger Jul 15, 2025
be5ed32
fix: file name
robert-burger Jul 15, 2025
29d6e4f
fix: file name
robert-burger Jul 15, 2025
8a5e084
fix: file name
robert-burger Jul 15, 2025
60db8d5
add: install of jq
robert-burger Jul 15, 2025
f3236f4
fix: file name
robert-burger Jul 15, 2025
b9db935
fix: file name
robert-burger Jul 15, 2025
bb1c3ea
fix: step1 response
robert-burger Jul 15, 2025
08d8711
fix: step1 response
robert-burger Jul 15, 2025
e826c1d
fix: step2 release
robert-burger Jul 15, 2025
0b14cf0
fix: step2 release
robert-burger Jul 15, 2025
433f1cc
fix: step2 release
robert-burger Jul 15, 2025
5d003c1
fix: step2 release
robert-burger Jul 15, 2025
378d1f2
fix: step2 release
robert-burger Jul 15, 2025
83d3834
fix: step2 release
robert-burger Jul 15, 2025
5395da6
fix: step2 release
robert-burger Jul 15, 2025
3f5809c
fix: cloudsmith upload version
robert-burger Jul 16, 2025
d0373ac
fix: cloudsmith upload version
robert-burger Jul 16, 2025
90907e2
change: add summary to upload
robert-burger Jul 16, 2025
204ef2c
change: switched to cloudsmith-cli
robert-burger Jul 16, 2025
7bbb02d
change: using python3 explicitely
robert-burger Jul 16, 2025
f67bc93
change: fix version
robert-burger Jul 16, 2025
3692387
change: using python venv
robert-burger Jul 16, 2025
aa94b53
change: install python3-venv
robert-burger Jul 16, 2025
961729c
change: install source
robert-burger Jul 16, 2025
d473978
change: source is a bash program
robert-burger Jul 16, 2025
a76011a
change: fix command order
robert-burger Jul 16, 2025
ed86d78
fix: filename path
robert-burger Jul 16, 2025
e74c693
fix: return error code if pthread_setschedparam fails
robert-burger Jul 10, 2025
bfe2f0d
chore: add newline
robert-burger Jul 10, 2025
1d20eb6
Merge branch 'master' into release/0.1.0
robert-burger Jul 16, 2025
2c2edd9
Merge branch 'master' into feat/tag-build
robert-burger Jul 16, 2025
25f98db
Merge branch 'release/0.1.0' into feat/tag-build
robert-burger Jul 16, 2025
ce8a677
del: not needed github actions
robert-burger Jul 16, 2025
650ab34
update: debian info for homepage and vcs
robert-burger Jul 16, 2025
062ace7
add: devel package upload
robert-burger Jul 16, 2025
9fab6d7
change: cloudsmith repo to common
robert-burger Jul 16, 2025
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
138 changes: 138 additions & 0 deletions .github/workflows/build-deb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: Build DEB Package

on:
push:
branches:
- feat/tag-build
pull_request:
branches:
- feat/tag-build

jobs:
build-deb:
runs-on: ubuntu-latest

env:
DEB_BUILD_OPTIONS: nocheck # or whatever options you need
strategy:
matrix:
distro: [debian-bookworm, debian-bullseye, ubuntu-24.04, ubuntu-22.04]
include:
- distro: debian-bookworm
image: debian:bookworm
os: debian
version: bookworm
- distro: debian-bullseye
image: debian:bullseye
os: debian
version: bullseye
- distro: ubuntu-24.04
image: ubuntu:24.04
os: ubuntu
version: noble
- distro: ubuntu-22.04
image: ubuntu:22.04
os: ubuntu
version: jammy
container:
image: ${{ matrix.image }}
steps:
- name: Install build dependencies
run: |
apt-get update
apt-get install -y build-essential devscripts debhelper autotools-dev autoconf-archive fakeroot sed git python3-pip python3-venv curl jq

- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Mark working directory as safe
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Fetch all branches
run: git fetch --tags

- name: update branch name
run: |
safe_branch=$(echo "${GITHUB_REF_NAME}" | tr '/' '-')
sed "s|BRANCH_VERSION|$safe_branch|" configure.ac.in > configure.ac
env:
GITHUB_REF_NAME: ${{ github.ref_name }}

- name: Prepare autotools
run: |
# Nur falls nicht schon vorhanden (optional)
autoreconf -fi

- name: Build .deb package
run: |
# baue mit dpkg-buildpackage (ohne signieren)
dpkg-buildpackage -us -uc -d

- name: Collect .deb artifact
run: |
mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }}
mv ../libosal_*.deb artifacts/${{ matrix.os }}/${{ matrix.version }}

- name: Set sanitized image name
id: sanitize
run: |
version=$(dpkg-parsechangelog | sed -n 's/^Version: //p')
echo "sanitized_image=$(echo "$version-$IMAGE" | tr '/:' '--')" >> $GITHUB_OUTPUT
env:
IMAGE: ${{ matrix.image }}

- name: Upload .deb package
uses: actions/upload-artifact@v4
with:
name: libosal-${{ steps.sanitize.outputs.sanitized_image }}.deb
path: artifacts/${{ matrix.os }}/${{ matrix.version }}/*.deb

- name: Ensure package is present
run: |
echo "Files in workspace:"
find *

- name: Upload to Cloudsmith (${{ matrix.os }}/${{ matrix.version }})
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
shell: bash
run: |
VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p')
FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/libosal_${VERSION}_amd64.deb"

python3 -m venv cloudsmith
cd cloudsmith
source bin/activate

python3 -m pip install --upgrade pip
pip3 install cloudsmith-cli

cloudsmith push deb robert-burger-AdLL/common/${{ matrix.os }}/${{ matrix.version }} ../${FILENAME} \
--republish \
--api-key "$CLOUDSMITH_API_KEY"

- name: Collect devel .deb artifact
run: |
mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }}
mv ../libosal-dev*.deb artifacts/${{ matrix.os }}/${{ matrix.version }}

- name: Upload devel to Cloudsmith (${{ matrix.os }}/${{ matrix.version }})
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
shell: bash
run: |
VERSION=$(dpkg-parsechangelog | sed -n 's/^Version: //p')
FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/libosal-dev_${VERSION}_amd64.deb"

python3 -m venv cloudsmith
cd cloudsmith
source bin/activate

python3 -m pip install --upgrade pip
pip3 install cloudsmith-cli

cloudsmith push deb robert-burger-AdLL/common/${{ matrix.os }}/${{ matrix.version }} ../${FILENAME} \
--republish \
--api-key "$CLOUDSMITH_API_KEY"
22 changes: 0 additions & 22 deletions .github/workflows/build-tag.yaml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/cmake-multi-platform.yml

This file was deleted.

5 changes: 5 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

safe_branch=$(git describe --tags | tr '/:' '--')

sed "s|PACKAGE_VERSION|$safe_branch|" configure.ac.in > configure.ac
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([libosal], m4_esyscmd_s([cat project.properties | grep VERSION | cut -d'=' -f2 | xargs printf "%s"]), [Robert Burger <robert.burger@dlr.de>])
AC_INIT([libosal], [0.0.6-rev0-59-gc918511], [Robert Burger <robert.burger@dlr.de>])

AC_CANONICAL_TARGET

Expand Down
Loading