-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2bc9bd
commit 0a7e865
Showing
8 changed files
with
64 additions
and
41 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 |
---|---|---|
@@ -1,31 +1,32 @@ | ||
cargo login $1 | ||
(cd commons/zenoh-result && cargo publish) | ||
(cd commons/zenoh-core && cargo publish) | ||
(cd commons/zenoh-keyexpr && cargo publish) | ||
(cd commons/zenoh-collections && cargo publish) | ||
(cd commons/zenoh-crypto && cargo publish) | ||
(cd commons/zenoh-buffers && cargo publish) | ||
(cd commons/zenoh-protocol && cargo publish) | ||
(cd commons/zenoh-util && cargo publish) | ||
(cd commons/zenoh-sync && cargo publish) | ||
(cd commons/zenoh-macros && cargo publish) | ||
(cd commons/zenoh-shm && cargo publish) | ||
(cd commons/zenoh-codec && cargo publish) | ||
(cd commons/zenoh-config && cargo publish) | ||
(cd io/zenoh-link-commons && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-udp && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-tcp && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-tls && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-quic && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-unixsock_stream && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-serial && cargo publish) | ||
(cd io/zenoh-links/zenoh-link-ws && cargo publish) | ||
(cd io/zenoh-link && cargo publish) | ||
(cd io/zenoh-transport && cargo publish) | ||
(cd plugins/zenoh-plugin-trait && cargo publish) | ||
(cd zenoh && cargo publish) | ||
(cd zenoh-ext && cargo publish) | ||
(cd zenohd && cargo publish) | ||
(cd plugins/zenoh-plugin-rest && cargo publish) | ||
(cd plugins/zenoh-backend-traits && cargo publish) | ||
(cd plugins/zenoh-plugin-storage-manager && cargo publish) | ||
(cd commons/zenoh-result && cargo publish; cargo clean) | ||
(cd commons/zenoh-core && cargo publish; cargo clean) | ||
(cd commons/zenoh-keyexpr && cargo publish; cargo clean) | ||
(cd commons/zenoh-collections && cargo publish; cargo clean) | ||
(cd commons/zenoh-crypto && cargo publish; cargo clean) | ||
(cd commons/zenoh-buffers && cargo publish; cargo clean) | ||
(cd commons/zenoh-protocol && cargo publish; cargo clean) | ||
(cd commons/zenoh-util && cargo publish; cargo clean) | ||
(cd commons/zenoh-sync && cargo publish; cargo clean) | ||
(cd commons/zenoh-macros && cargo publish; cargo clean) | ||
(cd commons/zenoh-shm && cargo publish; cargo clean) | ||
(cd commons/zenoh-codec && cargo publish; cargo clean) | ||
(cd commons/zenoh-config && cargo publish; cargo clean) | ||
(cd io/zenoh-link-commons && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-udp && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-tcp && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-tls && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-quic && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-unixpipe && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-unixsock_stream && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-serial && cargo publish; cargo clean) | ||
(cd io/zenoh-links/zenoh-link-ws && cargo publish; cargo clean) | ||
(cd io/zenoh-link && cargo publish; cargo clean) | ||
(cd io/zenoh-transport && cargo publish; cargo clean) | ||
(cd plugins/zenoh-plugin-trait && cargo publish; cargo clean) | ||
(cd zenoh && cargo publish; cargo clean) | ||
(cd zenoh-ext && cargo publish; cargo clean) | ||
(cd zenohd && cargo publish; cargo clean) | ||
(cd plugins/zenoh-plugin-rest && cargo publish; cargo clean) | ||
(cd plugins/zenoh-backend-traits && cargo publish; cargo clean) | ||
(cd plugins/zenoh-plugin-storage-manager && cargo publish; cargo clean) |
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 |
---|---|---|
|
@@ -23,12 +23,27 @@ on: | |
runtests: | ||
description: "run tests" | ||
type: boolean | ||
dockerhub: | ||
description: "publish to dockerhub" | ||
type: boolean | ||
doc: | ||
description: "generate doc" | ||
type: boolean | ||
build: | ||
description: "build" | ||
type: boolean | ||
publish: | ||
description: "publish" | ||
type: boolean | ||
githubrelease: | ||
description: "publish as github release" | ||
type: boolean | ||
eclipse: | ||
description: "publish to download.eclipse.org/zenoh" | ||
type: boolean | ||
cratesio: | ||
description: "publish to crates.io" | ||
type: boolean | ||
dockerhub: | ||
description: "publish to dockerhub" | ||
type: boolean | ||
features: | ||
description: "build with specified features (comma separated, no space)" | ||
type: string | ||
|
@@ -162,6 +177,7 @@ jobs: | |
|
||
builds: | ||
name: Build for ${{ matrix.job.target }} on ${{ matrix.job.os }} | ||
if: ${{ !(github.event.inputs.build == 'false') }} | ||
needs: checks | ||
runs-on: ${{ matrix.job.os }} | ||
strategy: | ||
|
@@ -330,7 +346,7 @@ jobs: | |
publication: | ||
name: Release publication | ||
if: ${{ needs.checks.outputs.IS_RELEASE == 'true' && !failure() }} | ||
if: ${{ (needs.checks.outputs.IS_RELEASE == 'true' || github.event.inputs.publish == 'true') && !failure() }} | ||
needs: [checks, builds, tests, doc] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -339,10 +355,12 @@ jobs: | |
with: | ||
path: ARTIFACTS | ||
- name: Publish as github release | ||
if: ${{ !(github.event.inputs.githubrelease == 'false') }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ARTIFACTS/*/*.* | ||
- name: Publish to download.eclipse.org/zenoh | ||
if: ${{ !(github.event.inputs.eclipse == 'false') }} | ||
env: | ||
SSH_TARGET: [email protected] | ||
ECLIPSE_BASE_DIR: /home/data/httpd/download.eclipse.org/zenoh | ||
|
@@ -367,13 +385,18 @@ jobs: | |
ssh-add -D | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust toolchain | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
run: rustup show | ||
- name: Check crates | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
shell: bash | ||
run: .github/workflows/crates_check.sh | ||
- name: Publish to crates.io | ||
if: ${{ !(github.event.inputs.cratesio == 'false') }} | ||
shell: bash | ||
run: .github/workflows/crates_publish.sh ${{ secrets.CRATES_IO_TOKEN }} | ||
run: | | ||
set +x | ||
.github/workflows/crates_publish.sh ${{ secrets.CRATES_IO_TOKEN }} | ||
- name: Cancel workflow if fail # thus Docker job be interrupted | ||
if: failure() | ||
uses: andymckay/[email protected] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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