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

build all artifacts using GitHub Actions #38

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: build-all
on: [push]
jobs:
build-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- run: bash scripts/build.sh
42 changes: 42 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
# A script to build and install all mercury components

MAVEN_CLI_OPTS="--show-version"
MAVEN_OPTS="-Dmaven.repo.local=./.m2/repository -Djava.awt.headless=true"

# System
mvn $MAVEN_CLI_OPTS clean compile install -f system/platform-core
mvn $MAVEN_CLI_OPTS clean compile install -f system/rest-spring

# Core
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/core/cloud-connector
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/core/service-monitor

# Kafka
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/kafka/kafka-standalone
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/kafka/kafka-presence
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/kafka/kafka-connector

# Active MQ
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/activemq/activemq-connector
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/activemq/activemq-presence

# Hazelcast
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/hazelcast/hazelcast-connector
mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/hazelcast/hazelcast-presence

# Tibco (requires libraries)
# mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/tibco/tibco-connector
# mvn $MAVEN_CLI_OPTS clean compile install -f connectors/adapters/tibco/tibco-presence

# Language Connector
mvn $MAVEN_CLI_OPTS clean compile install -f language-packs/language-connector

# Extensions
mvn $MAVEN_CLI_OPTS clean compile install -f extensions/api-playground
mvn $MAVEN_CLI_OPTS clean compile install -f extensions/distributed-tracer

mvn $MAVEN_CLI_OPTS clean compile install -f extensions/rest-automation-lib
mvn $MAVEN_CLI_OPTS clean compile install -f extensions/rest-automation-app

mvn $MAVEN_CLI_OPTS clean compile install -f extensions/simple-scheduler