From 955eeedfae7fde34a21c67f9e171f5420b81e53b Mon Sep 17 00:00:00 2001 From: Jamil RAICHOUNI Date: Wed, 23 Oct 2024 22:00:57 +0200 Subject: [PATCH] ci: Checkout the repo to build the addon --- .github/workflows/build-addon.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-addon.yml b/.github/workflows/build-addon.yml index 5c66c72..dd09bd2 100644 --- a/.github/workflows/build-addon.yml +++ b/.github/workflows/build-addon.yml @@ -56,7 +56,7 @@ jobs: # name: "jdk-17.0.11+9" # url: "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz" name: Setup build environment for Capella ${{ matrix.capella.version }} - # needs: [quality] + needs: [quality] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -68,7 +68,7 @@ jobs: python-version: "3.12" - name: Install `capella-addons` CLI tool run: |- - pip install . + pip install ../capella-addons pip show capella-addons - name: Install Capella from capelladocker-images run: |- @@ -105,7 +105,7 @@ jobs: rm *.tar.gz build-addons: name: Build addons - needs: [setup-build-environment] + needs: [quality, setup-build-environment] runs-on: ubuntu-latest strategy: matrix: @@ -116,6 +116,9 @@ jobs: addon: - rest-api steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build `.classpath` file run: |- cd ${{ matrix.addon }} @@ -133,3 +136,11 @@ jobs: --java-execution-environment=JavaSE-17 \ /usr/lib/jvm/jdk-17.0.6+10 \ /tmp/jdtls + - name: Package addon + run: |- + cd ${{ matrix.addon }} + python -m capella_addons -v \ + package \ + /usr/lib/jvm/${{ matrix.capella.jdk.name }} \ + /usr/lib/jvm/jdk-17.0.6+10 \ + /tmp/jdtls