Skip to content
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

Check release build #13

Closed
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
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
# Contributors:
# ZettaScale Zenoh Team, <[email protected]>
#
name: CI
name: Release

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
release:
types: [published]
schedule:
- cron: "0 6 * * 1-5"
- cron: "0 1 * * 1-5"
workflow_dispatch:


jobs:
check:
Expand All @@ -32,6 +32,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -64,6 +66,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install latest Rust toolchain
uses: actions-rs/toolchain@v1
Expand Down
107 changes: 57 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,24 @@
# Contributors:
# ZettaScale Zenoh Team, <[email protected]>
#
name: Release
name: CI

on:
release:
types: [published]
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 1 * * 1-5"
workflow_dispatch:
- cron: "0 6 * * 1-5"

jobs:
checks:
name: Code checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -137,6 +140,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
submodules: recursive
- name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
shell: bash
run: git fetch --tags --force
Expand Down Expand Up @@ -258,54 +262,55 @@ jobs:
${{ steps.package.outputs.BIN_PKG_NAME }}
${{ steps.package.outputs.DEBS_PKG_NAME }}

# docker-build:
# name: Docker build and push
# needs: [checks, builds]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
# - name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
# shell: bash
# run: git fetch --tags --force
# - name: Download packages from previous job
# uses: actions/download-artifact@v2
# with:
# path: PACKAGES
# - name: Unzip PACKAGES
# run: |
# ls PACKAGES
# mkdir -p docker/linux/amd
# unzip PACKAGES/x86_64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-x86_64-unknown-linux-musl.zip -d docker/linux/amd64/
# mkdir -p docker/linux/arm64
# unzip PACKAGES/aarch64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-aarch64-unknown-linux-musl.zip -d docker/linux/arm64/
# tree docker
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Docker meta - set tags and labels
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: eclipse/zenoh-bridge-ros1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_COM_USERNAME }}
# password: ${{ secrets.DOCKER_COM_PASSWORD }}
# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# file: .github/workflows/Dockerfile
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
docker-build:
name: Docker build and push
needs: [checks, builds]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 500 # NOTE: get long history for git-version crate to correctly compute a version
submodules: recursive
- name: Fetch Git tags # NOTE: workaround for https://github.com/actions/checkout/issues/290
shell: bash
run: git fetch --tags --force
- name: Download packages from previous job
uses: actions/download-artifact@v2
with:
path: PACKAGES
- name: Unzip PACKAGES
run: |
ls PACKAGES
mkdir -p docker/linux/amd
unzip PACKAGES/x86_64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-x86_64-unknown-linux-musl.zip -d docker/linux/amd64/
mkdir -p docker/linux/arm64
unzip PACKAGES/aarch64-unknown-linux-musl/zenoh-bridge-ros1-${{ needs.checks.outputs.PKG_VERSION }}-aarch64-unknown-linux-musl.zip -d docker/linux/arm64/
tree docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker meta - set tags and labels
id: meta
uses: docker/metadata-action@v3
with:
images: eclipse/zenoh-bridge-ros1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_COM_USERNAME }}
password: ${{ secrets.DOCKER_COM_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: .github/workflows/Dockerfile
push: false # true todo: temporary disabled
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

publication:
name: Release publication
if: needs.checks.outputs.IS_RELEASE == 'true'
if: false # needs.checks.outputs.IS_RELEASE == 'true' todo: temporary disabled
needs: [checks, builds]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -341,6 +346,8 @@ jobs:
echo "---- cleanup identity"
ssh-add -D
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
- name: Publish to crates.io
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "rosrust"]
path = rosrust
url = [email protected]:ZettaScaleLabs/rosrust.git
branch = feature/fix_bugs
51 changes: 51 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Contributing to Eclipse zenoh

Thanks for your interest in this project.

## Project description

Eclipse zenoh provides is a stack designed to
1. minimize network overhead,
2. support extremely constrained devices,
3. supports devices with low duty-cycle by allowing the negotiation of data exchange modes and schedules,
4. provide a rich set of abstraction for distributing, querying and storing data along the entire system, and
5. provide extremely low latency and high throughput.

* https://projects.eclipse.org/projects/iot.zenoh

## Developer resources

Information regarding source code management, builds, coding standards, and
more.

* https://projects.eclipse.org/projects/iot.zenoh/developer

The project maintains the following source code repositories

* https://github.com/eclipse-zenoh

## Eclipse Contributor Agreement

Before your contribution can be accepted by the project team contributors must
electronically sign the Eclipse Contributor Agreement (ECA).

* http://www.eclipse.org/legal/ECA.php

Commits that are provided by non-committers must have a Signed-off-by field in
the footer indicating that the author is aware of the terms by which the
contribution has been provided to the project. The non-committer must
additionally have an Eclipse Foundation account and must have a signed Eclipse
Contributor Agreement (ECA) on file.

For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit

## Contact

Contact the project developers via the project's "dev" list.

* https://accounts.eclipse.org/mailing-list/zenoh-dev

Or via the Gitter channel.

* https://gitter.im/atolab/zenoh
7 changes: 7 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributors to Eclipse zenoh-plugin-ros1

These are the contributors to Eclipse zenoh (the initial contributors and the contributors listed in the Git log).


| GitHub username | Name |
| --------------- | -----------------------------|
Loading