-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/condvar_timedwait
- Loading branch information
Showing
46 changed files
with
574 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,78 @@ | ||
# | ||
# Copyright (c) 2024 ZettaScale Technology | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: | ||
# ZettaScale zenoh Team, <[email protected]> | ||
# | ||
name: cpp-check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
zenoh_cpp_branch: | ||
description: 'Branch of zenoh-cpp to use' | ||
required: false | ||
default: 'main' | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test zenoh-cpp on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
unstable: [0, 1] | ||
|
||
steps: | ||
- name: checkout zenoh-pico | ||
uses: actions/checkout@v3 | ||
|
||
- name: build zenoh-pico | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local -DZ_FEATURE_UNSTABLE_API=${{ matrix.unstable }} -DZ_FEATURE_LIVELINESS=1 -DASAN=ON | ||
cmake --build . --target install --config Release | ||
- name: clone zenoh-cpp | ||
run: | | ||
git clone https://github.com/eclipse-zenoh/zenoh-cpp.git | ||
cd zenoh-cpp | ||
git fetch --all | ||
git checkout ${{ github.event.inputs.zenoh_cpp_branch || 'main' }} | ||
git submodule update --init --recursive | ||
- name: build zenoh-cpp | ||
run: | | ||
cd zenoh-cpp | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=~/local -DCMAKE_BUILD_TYPE=Release -DZENOHCXX_ZENOHPICO=ON -DZENOHCXX_ZENOHC=OFF | ||
cmake --build . --config Release | ||
- name: build examples | ||
run: | | ||
cd zenoh-cpp/build | ||
cmake --build . --target examples --config Release | ||
- name: build tests | ||
run: | | ||
cd zenoh-cpp/build | ||
cmake --build . --target tests --config Release | ||
- name: run tests | ||
run: | | ||
cd zenoh-cpp/build | ||
ctest -C Release --output-on-failure |
This file contains 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 |
---|---|---|
|
@@ -174,8 +174,8 @@ jobs: | |
version: ${{ needs.tag.outputs.version }} | ||
ssh-host: [email protected] | ||
ssh-host-path: /home/data/httpd/download.eclipse.org/zenoh/zenoh-pico | ||
ssh-private-key: ${{ secrets.ORG_GPG_PRIVATE_KEY }} | ||
ssh-passphrase: ${{ secrets.ORG_GPG_PASSPHRASE }} | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }} | ||
archive-patterns: '.*\.zip' | ||
|
||
github: | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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.