Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
Closed
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
15 changes: 2 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,22 @@ jobs:
--platform linux/arm64 --load \
--build-arg projectDir=$PWD/$PROJECT_DIR \
-t final-app .

- name: Extract built binaries
run: |
mkdir -p artifacts/bin
mkdir -p artifacts/config
mkdir -p artifacts/fonts

docker create --name tmpapp final-app

docker cp tmpapp:/home/$PROJECT_DIR/InstrumentClusterApp ./artifacts/bin/
docker cp tmpapp:/home/$PROJECT_DIR/MiddleWareApp ./artifacts/bin/

cp ./$PROJECT_DIR/ZenohConfig/InstrumentClusterConfig.json ./artifacts/config/
cp ./$PROJECT_DIR/ZenohConfig/MiddleWareConfig.json ./artifacts/config/

cp -r ./RaspberryPi/deploy/fonts/* ./artifacts/fonts/

git archive --format=zip HEAD -o ./artifacts/source-code.zip

cd artifacts
zip -r ../release-package.zip *
cd ..

docker rm tmpapp

docker rm tmpapp
- name: Get latest tag and increment
id: tag
run: |
Expand All @@ -71,21 +62,18 @@ jobs:
patch=$(echo $latest_tag | cut -d. -f3)
new_tag="v$major.$minor.$((patch + 1))"
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.new_tag }}
name: Release ${{ steps.tag.outputs.new_tag }}
body: |
## Raspberry Pi Release

**Includes:**
- Compiled apps (`InstrumentClusterApp`, `MiddleWareApp`)
- Zenoh config files
- Fonts
- Full source code zip

**Instructions:**
- Copy `InstrumentClusterApp` and `MiddleWareApp` to `$PI_PATH_BIN`
- Copy configs to `$PI_PATH_ETC`
Expand All @@ -96,3 +84,4 @@ jobs:
artifacts/bin/*
env:
GITHUB_TOKEN: ${{ secrets.PAT_LUIS }}

5 changes: 4 additions & 1 deletion deploy/dockerfiles/DockerFileRasp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ RUN { \
libffi-dev \
libsqlite3-dev \
libbsd-dev \
libeigen3-dev \
perl \
patch \
m4 \
Expand Down Expand Up @@ -151,7 +152,9 @@ RUN { \
cd build && \
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DBUILD_SHARED_LIBS=FALSE && \
-DBUILD_SHARED_LIBS=FALSE \
-DZENOHC_BUILD_WITH_UNSTABLE_API=true \
-DZENOHC_BUILD_WITH_SHARED_MEMORY=true && \
make -j$(nproc) && \
make install && \
cd ../.. && \
Expand Down
Loading