Skip to content

Update 20_snapshot-deployment.yml #124

Update 20_snapshot-deployment.yml

Update 20_snapshot-deployment.yml #124

name: 10 build validatation
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
# - name: caching idefix / ~/.klibio
# uses: actions/cache@v3
# with:
# path: |
# ~/.ecdev
# ~/.m2
# ~/.p2
# key: dev-${{ hashFiles('~/.klibio/klibio.sh') }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: |
8
11
17
21
- name: build
shell: bash
run: |
echo -e "#\n# build\n#\n"
echo "# configure environment for maven/tycho calls"
export JAVA_HOME_8=$JAVA_HOME_8_X64
export JAVA_HOME_11=$JAVA_HOME_11_X64
export JAVA_HOME_17=$JAVA_HOME_17_X64
export JAVA_HOME_21=$JAVA_HOME_21_X64
export PATH=$JAVA_HOME/bin:$PATH
./build.sh --jar-signing
continue-on-error: true
- name: validate-build-results
shell: bash
run: |
PRODUCTS=$(find releng/products/target -name 'example.rcp.app.ui.*' -type f)
REPO_PRODUCT=$(find releng/products/target -name 'products-*.zip' -type f)
REPO_BINARY=$(find releng/repo.binary/target -name 'repo.binary-*.zip' -type f)
REPO_SDK=$(find releng/repo.sdk/target -name 'repo.sdk-*.zip' -type f)
for product in "${PRODUCTS[@]}"; do
test -f "$product"
done
test -f $REPO_PRODUCT
test -f $REPO_BINARY
test -f $REPO_SDK