Skip to content

Commit

Permalink
Add github action to build cappella-2023-03 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri-Blankenstein-TNO committed Jan 18, 2024
1 parent b7dcd0c commit 3a63437
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 8 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build_capella-2023-03.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will build UML Designer with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Build and Test UML Designer

on:
push:
branches: [ "capella-2023-03" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17 for x64
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
cache: maven
- name: Build uml designer
run: mvn clean verify --batch-mode --update-snapshots --fail-at-end --file pom.xml
- name: Build uml designer products
run: mvn clean verify --batch-mode --update-snapshots --fail-at-end --file releng/org.obeonetwork.dsl.uml2.product.parent/pom.xml
- name: Prepare deployment
run: ./prepare-deploy-local-dir.sh pages
- name: Attach Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Attach Pages
uses: actions/upload-artifact@v3
with:
name: UMLDesigner-pages
path: pages
retention-days: 5
16 changes: 8 additions & 8 deletions prepare-deploy-local-dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ UPDATE_SITE_DIR=packaging/org.obeonetwork.dsl.uml2.update/target/
DISCOVERY_UPDATE_SITE_DIR=packaging/org.obeonetwork.dsl.uml2.discovery.update/target/
DISCOVERY=plugins/org.obeonetwork.dsl.uml2.discovery/discovery.xmi
DISCOVERY_IMAGES=plugins/org.obeonetwork.dsl.uml2.discovery/images/
TP=releng/org.obeonetwork.dsl.uml2.target/*.tpd
CORE_TP=releng/org.obeonetwork.dsl.uml2.core.target/*.tpd
TP=releng/org.obeonetwork.dsl.uml2.target/umldesigner-capella-2023-03.tpd
CORE_TP=releng/org.obeonetwork.dsl.uml2.core.target/umlcoredesigner-capella-2023-03.tpd
BUNDLE_DIR=packaging/org.obeonetwork.dsl.uml2.product/target/products/*.zip
DEPLOY_LOCAL_DIR=$1
echo "Prepare deploy local dir = ${DEPLOY_LOCAL_DIR}"
Expand All @@ -23,13 +23,13 @@ cp -r $UPDATE_SITE_DIR/repository $DEPLOY_LOCAL_DIR
cp -r $UPDATE_SITE_DIR/*.zip $DEPLOY_LOCAL_DIR
cp -r $CORE_TP $DEPLOY_LOCAL_DIR
cp -r $TP $DEPLOY_LOCAL_DIR
cp -r UMLDesigner.zip $DEPLOY_LOCAL_DIR
#cp -r UMLDesigner.zip $DEPLOY_LOCAL_DIR
echo "ls ${DEPLOY_LOCAL_DIR}"
ls $DEPLOY_LOCAL_DIR
# Create bundles folder
mkdir $DEPLOY_LOCAL_DIR/bundles
#mkdir $DEPLOY_LOCAL_DIR/bundles
# Copy bundles
mv $TRAVIS_BUILD_DIR/UMLDesigner-macosx.cocoa.x86_64.dmg.zip $DEPLOY_LOCAL_DIR/bundles
cp -r $BUNDLE_DIR $DEPLOY_LOCAL_DIR/bundles
echo "ls ${DEPLOY_LOCAL_DIR}/bundles"
ls $DEPLOY_LOCAL_DIR/bundles
#mv $TRAVIS_BUILD_DIR/UMLDesigner-macosx.cocoa.x86_64.dmg.zip $DEPLOY_LOCAL_DIR/bundles
#cp -r $BUNDLE_DIR $DEPLOY_LOCAL_DIR/bundles
#echo "ls ${DEPLOY_LOCAL_DIR}/bundles"
#ls $DEPLOY_LOCAL_DIR/bundles

0 comments on commit 3a63437

Please sign in to comment.