Skip to content

fix gh action build

fix gh action build #8

name: build-validation
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
environment: dev
env:
REPOSILITE_ID: ${{ vars.REPOSILITE_ID }}
REPOSILITE_URL: ${{ vars.REPOSILITE_URL }}
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_TOKEN: ${{ secrets.REPOSILITE_TOKEN }}
APP_FEATURE_PRODUCT: 'example.rcp.app.ui.feature.product'
APP_BUNDLE_PRODUCT: 'example.rcp.app.ui.plugin.product'
APP_FEATURE: 'example-rcp-app-ui-feature'
APP_BUNDLE: 'example-rcp-app-ui-plugin'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: caching idefix / ~/.ecdev
uses: actions/cache@v3
with:
path: |
~/.ecdev
~/.m2
~/.p2
key: dev-${{ hashFiles('~/.klibio/klibio.sh') }}
- name: setup idefix
shell: bash
run: |
$GITHUB_WORKSPACE/.github/workflows/1-setup-global-properties.sh
$GITHUB_WORKSPACE/.github/workflows/2-setup-idefix.sh
ls -laR ~
continue-on-error: false
- name: build
shell: bash
run: |
ls -laR ~
echo -e "#\n# build\n#\n"
echo "# configure environment for maven/tycho calls"
pushd ~/.klibio && set-java.sh 17 && popd
$GITHUB_WORKSPACE/build.sh
continue-on-error: false