-
Notifications
You must be signed in to change notification settings - Fork 78
chore: Add ci support for liblogosdeliery, build and artifacts #3746
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ on: | |||||
| push: | ||||||
| tags: | ||||||
| - 'v*' # "e.g. v0.4" | ||||||
|
|
||||||
| workflow_dispatch: | ||||||
|
|
||||||
| env: | ||||||
|
|
@@ -65,6 +65,16 @@ jobs: | |||||
|
|
||||||
| echo "libwaku=${LIBWAKU_ARTIFACT_NAME}" >> $GITHUB_OUTPUT | ||||||
|
|
||||||
| if [[ "${{ runner.os }}" == "Linux" ]]; then | ||||||
| LIBLOGOSDELIVERY_ARTIFACT_NAME=$(echo "liblogosdelivery-${VERSION}-${{matrix.arch}}-${{runner.os}}-linux.deb" | tr "[:upper:]" "[:lower:]") | ||||||
| fi | ||||||
|
|
||||||
| if [[ "${{ runner.os }}" == "macOS" ]]; then | ||||||
| LIBLOGOSDELIVERY_ARTIFACT_NAME=$(echo "liblogosdelivery-${VERSION}-${{matrix.arch}}-macos.tar.gz" | tr "[:upper:]" "[:lower:]") | ||||||
| fi | ||||||
|
|
||||||
| echo "liblogosdelivery=${LIBLOGOSDELIVERY_ARTIFACT_NAME}" >> $GITHUB_OUTPUT | ||||||
|
|
||||||
| - name: Install build dependencies | ||||||
| run: | | ||||||
| if [[ "${{ runner.os }}" == "Linux" ]]; then | ||||||
|
|
@@ -83,6 +93,9 @@ jobs: | |||||
| make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" CI=false libwaku | ||||||
| make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" CI=false STATIC=1 libwaku | ||||||
|
|
||||||
| make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" CI=false liblogosdelivery | ||||||
| make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC} -d:disableMarchNative --os:${OS} --cpu:${{matrix.arch}} -d:postgres" CI=false STATIC=1 liblogosdelivery | ||||||
|
|
||||||
| - name: Create distributable libwaku package | ||||||
| run: | | ||||||
| VERSION=${{ steps.version.outputs.version }} | ||||||
|
|
@@ -109,6 +122,32 @@ jobs: | |||||
| tar -cvzf ${{steps.vars.outputs.libwaku}} ./build/libwaku.dylib ./build/libwaku.a ./library/libwaku.h | ||||||
| fi | ||||||
|
|
||||||
| - name: Create distributable liblogosdelivery package | ||||||
| run: | | ||||||
| VERSION=${{ steps.version.outputs.version }} | ||||||
|
|
||||||
| if [[ "${{ runner.os }}" == "Linux" ]]; then | ||||||
| rm -rf pkg | ||||||
| mkdir -p pkg/DEBIAN pkg/usr/local/lib pkg/usr/local/include | ||||||
| cp build/liblogosdelivery.so pkg/usr/local/lib/ | ||||||
| cp build/liblogosdelivery.a pkg/usr/local/lib/ | ||||||
| cp liblogosdelivery/liblogosdelivery.h pkg/usr/local/include/ | ||||||
|
|
||||||
| echo "Package: logosdelivery" >> pkg/DEBIAN/control | ||||||
| echo "Version: ${VERSION}" >> pkg/DEBIAN/control | ||||||
| echo "Priority: optional" >> pkg/DEBIAN/control | ||||||
| echo "Section: libs" >> pkg/DEBIAN/control | ||||||
| echo "Architecture: ${{matrix.arch}}" >> pkg/DEBIAN/control | ||||||
| echo "Maintainer: Logos Messaging Team" >> pkg/DEBIAN/control | ||||||
|
||||||
| echo "Maintainer: Logos Messaging Team" >> pkg/DEBIAN/control | |
| echo "Maintainer: Logos Messaging Team <ivansete@status.im>" >> pkg/DEBIAN/control |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step now builds
liblogosdeliveryin addition to the Waku artifacts, but the step name is still "Build Waku artifacts". Consider renaming the step to something broader (e.g., "Build artifacts") so CI logs remain accurate and easier to scan.