Skip to content

fix: update Poco version to 1.15.3 in fetchcontent_poco.cmake #13

fix: update Poco version to 1.15.3 in fetchcontent_poco.cmake

fix: update Poco version to 1.15.3 in fetchcontent_poco.cmake #13

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-native-module:
name: Build native module
runs-on: ubuntu-latest
env:
OSAL_PATH: ${{ github.workspace }}/../osal
ETL_PATH: ${{ github.workspace }}/../etl
steps:
- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.10.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Configure SSH and git
run: |
mkdir -p ~/.ssh
ssh-keyscan -H git.aerospace-lab.de >> ~/.ssh/known_hosts
cat << 'EOF' >> ~/.ssh/config
Host git.aerospace-lab.de
ControlMaster auto
ControlPath ~/.ssh/cm-%r@%h:%p
ControlPersist 10m
ServerAliveInterval 30
EOF
git config --global submodule.fetchJobs 1
- name: Checkout repository
uses: actions/checkout@v7
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends ninja-build
- name: Clone and build OSAL
run: |
MOCK_APP="${{ github.workspace }}/mock-app"
mkdir -p "$MOCK_APP/src/main/messages" "$MOCK_APP/src/main/cpp/Core"
cp -r "${{ github.workspace }}/src/main/messages/"* "$MOCK_APP/src/main/messages/"
touch "$MOCK_APP/src/main/cpp/Core/ApplicationConfig.hpp"
git clone --recurse-submodules git@git.aerospace-lab.de:rustlet-rt/osal.git "${{ env.OSAL_PATH }}"
export RUSTLET_RT_APPLICATIONS_PATH="${{ github.workspace }}"
export RUSTLET_RT_APPLICATION="mock-app"
cmake -S "${{ env.OSAL_PATH }}" -B "${{ env.OSAL_PATH }}/target/linux/release" -DARCH=linux -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cmake --build "${{ env.OSAL_PATH }}/target/linux/release"
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Verify no dynamic Poco dependencies
run: |
if ldd ./build/Release/tinybuf-node.node | grep -i poco; then
echo "::error::Binary contains dynamic Poco shared library dependencies!"
exit 1
fi
echo "Verified: no dynamic Poco dependencies in binary!"