-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add release workflows for each target with optional builds (#26)
- Loading branch information
1 parent
699a3a9
commit 068bf59
Showing
28 changed files
with
171,849 additions
and
46,573 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Publish crates (Eclipse) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
repo: | ||
type: string | ||
required: true | ||
live-run: | ||
type: string | ||
required: true | ||
version: | ||
type: string | ||
required: true | ||
branch: | ||
type: string | ||
required: true | ||
artifact-patterns: | ||
type: string | ||
required: true | ||
exclude-builds: | ||
type: string | ||
required: false | ||
name: | ||
type: string | ||
required: true | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
workflow_dispatch: | ||
inputs: | ||
repo: | ||
type: string | ||
required: true | ||
live-run: | ||
type: string | ||
required: true | ||
version: | ||
type: string | ||
required: true | ||
branch: | ||
type: string | ||
required: true | ||
artifact-patterns: | ||
type: string | ||
required: true | ||
exclude-builds: | ||
type: string | ||
required: false | ||
name: | ||
type: string | ||
required: true | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
build: | ||
if: ${{ !inputs.no-build }} | ||
uses: eclipse-zenoh/ci/.github/workflows/build-crates-standalone.yml@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
artifact-patterns: ${{ inputs.artifact-patterns }} | ||
exclude-builds: ${{ inputs.exclude-builds }} | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: eclipse-zenoh/ci/publish-crates-eclipse@main | ||
with: | ||
live-run: ${{ inputs.live-run }} | ||
version: ${{ inputs.version }} | ||
ssh-host: [email protected] | ||
ssh-host-path: /home/data/httpd/download.eclipse.org/${{ inputs.name }} | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }} |
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,84 @@ | ||
name: Publish crates (GitHub) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
repo: | ||
type: string | ||
required: true | ||
live-run: | ||
type: string | ||
required: true | ||
version: | ||
type: string | ||
required: true | ||
branch: | ||
type: string | ||
required: true | ||
artifact-patterns: | ||
type: string | ||
required: true | ||
exclude-builds: | ||
type: string | ||
required: false | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
workflow_dispatch: | ||
inputs: | ||
repo: | ||
type: string | ||
required: true | ||
live-run: | ||
type: string | ||
required: true | ||
version: | ||
type: string | ||
required: true | ||
branch: | ||
type: string | ||
required: true | ||
artifact-patterns: | ||
type: string | ||
required: true | ||
exclude-builds: | ||
type: string | ||
required: false | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
build-standalone: | ||
if: ${{ !inputs.no-build }} | ||
uses: eclipse-zenoh/ci/.github/workflows/build-crates-standalone.yml@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
artifact-patterns: ${{ inputs.artifact-patterns }} | ||
exclude-builds: ${{ inputs.exclude-builds }} | ||
|
||
build-debian: | ||
if: ${{ !inputs.no-build }} | ||
uses: eclipse-zenoh/ci/.github/workflows/build-crates-debian.yml@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
|
||
publish: | ||
needs: [build-standalone, build-debian] | ||
runs-on: macos-latest | ||
steps: | ||
- uses: eclipse-zenoh/ci/publish-crates-github@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
live-run: ${{ inputs.live-run }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }} | ||
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }} |
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 |
---|---|---|
|
@@ -21,6 +21,10 @@ on: | |
formulae: | ||
type: string | ||
required: true | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
workflow_dispatch: | ||
inputs: | ||
repo: | ||
|
@@ -41,19 +45,39 @@ on: | |
formulae: | ||
type: string | ||
required: true | ||
no-build: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
publish-crates-homebrew: | ||
build: | ||
if: ${{ !inputs.no-build }} | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: [x86_64-apple-darwin, aarch64-apple-darwin] | ||
steps: | ||
- uses: eclipse-zenoh/ci/build-crates-standalone@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
target: ${{ matrix.target }} | ||
artifact-patterns: ${{ inputs.artifact-patterns }} | ||
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }} | ||
|
||
publish: | ||
needs: build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: eclipse-zenoh/ci/publish-crates-homebrew@main | ||
with: | ||
repo: ${{ inputs.repo }} | ||
live-run: ${{ inputs.live-run }} | ||
version: ${{ inputs.version }} | ||
branch: ${{ inputs.branch }} | ||
formulae: ${{ inputs.formulae }} | ||
artifact-patterns: ${{ inputs.artifact-patterns }} | ||
tap: eclipse-zenoh/homebrew-zenoh | ||
ssh-host: [email protected] | ||
ssh-host-path: /home/data/httpd/download.eclipse.org/zenoh/homebrew-tap | ||
|
Oops, something went wrong.