-
Notifications
You must be signed in to change notification settings - Fork 4
Update cmake-multi-platform.yml #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
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 739fc97
Create build_deb.yaml
robert-burger feb5cc9
Update build_deb.yaml
robert-burger 6c7c77b
Update configure.ac
robert-burger d69b9b5
Update rules
robert-burger f4fb15a
fix: return error code if pthread_setschedparam fails
robert-burger 8b3c09c
chore: add newline
robert-burger af27ef5
Merge branch 'release/0.1.0' into feat/tag-build
robert-burger d0e4471
add: coverage build
robert-burger adad223
add: coverage build
robert-burger 33a6750
add: build to rmc-build.yaml
robert-burger 31f961c
fix: indentation level of rmc-build.yaml
robert-burger b69d001
change: skippin mutex noprioinheritance check when permission denied!
robert-burger 58870be
Update build_deb.yaml
robert-burger 698c74f
Update build_deb.yaml
robert-burger 23dd2c0
Update build_deb.yaml
robert-burger f5b4d75
Update build_deb.yaml
robert-burger c918511
Update build_deb.yaml
robert-burger 9dee24d
change: deb build with PACKAGE_VERSION from git
robert-burger 2d1d5b8
del: old configure ac
robert-burger 85c1f91
add: update of debian changelog
robert-burger ace1d27
change: calling with bash
robert-burger 4da76b9
change: fetch all branches
robert-burger 07667e7
change: also fetch tags
robert-burger 7af6b71
change: also fetch tags
robert-burger 73be889
change: also fetch tags
robert-burger 0e43f63
change: sudo not needed in container runner
robert-burger 426a339
change: reorder steps
robert-burger fe0e984
change: add safe.directory for git clone
robert-burger 00e6fd9
chore: syntax fix
robert-burger 9ae2427
update: debian changelog
robert-burger 3937fb6
update: debian package generation
robert-burger f95e67b
change: add install of python3-pip
robert-burger 62c4c6e
change: not publishing debug sym objects
robert-burger 18a40eb
change: pip install in container
robert-burger f466331
change: using cloudsmith action
robert-burger 509f9ef
change: using pip to install cloudsmith
robert-burger 31c0b03
change: using pip to install cloudsmith
robert-burger 41b3e83
add: version to deb package
robert-burger 475afb8
fix: cloudsmith upload
robert-burger 13e72ad
change: cloudsmith url
robert-burger 63a2009
change: upload to os/version subdirs
robert-burger adb3a66
add: IMAGE to sanitized name
robert-burger cf59d5f
fix: cloudsmith upload url
robert-burger 5a5e4d2
change: trying two-step cloudsmith upload
robert-burger f38ae0d
fix: yaml syntax
robert-burger f57808c
fix: yaml syntax
robert-burger b54461c
fix: file name
robert-burger be5ed32
fix: file name
robert-burger 29d6e4f
fix: file name
robert-burger 8a5e084
fix: file name
robert-burger 60db8d5
add: install of jq
robert-burger f3236f4
fix: file name
robert-burger b9db935
fix: file name
robert-burger bb1c3ea
fix: step1 response
robert-burger 08d8711
fix: step1 response
robert-burger e826c1d
fix: step2 release
robert-burger 0b14cf0
fix: step2 release
robert-burger 433f1cc
fix: step2 release
robert-burger 5d003c1
fix: step2 release
robert-burger 378d1f2
fix: step2 release
robert-burger 83d3834
fix: step2 release
robert-burger 5395da6
fix: step2 release
robert-burger 3f5809c
fix: cloudsmith upload version
robert-burger d0373ac
fix: cloudsmith upload version
robert-burger 90907e2
change: add summary to upload
robert-burger 204ef2c
change: switched to cloudsmith-cli
robert-burger 7bbb02d
change: using python3 explicitely
robert-burger f67bc93
change: fix version
robert-burger 3692387
change: using python venv
robert-burger aa94b53
change: install python3-venv
robert-burger 961729c
change: install source
robert-burger d473978
change: source is a bash program
robert-burger a76011a
change: fix command order
robert-burger ed86d78
fix: filename path
robert-burger e74c693
fix: return error code if pthread_setschedparam fails
robert-burger bfe2f0d
chore: add newline
robert-burger 1d20eb6
Merge branch 'master' into release/0.1.0
robert-burger 2c2edd9
Merge branch 'master' into feat/tag-build
robert-burger 25f98db
Merge branch 'release/0.1.0' into feat/tag-build
robert-burger ce8a677
del: not needed github actions
robert-burger 650ab34
update: debian info for homepage and vcs
robert-burger 062ace7
add: devel package upload
robert-burger 9fab6d7
change: cloudsmith repo to common
robert-burger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.