File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -834,6 +834,24 @@ jobs:
834834 poetry export --without-hashes --with dev -o requirements_dev.txt
835835 cat requirements_dev.txt
836836 fi
837+ - name : Setup UCC
838+ run : |
839+ if [ -f "requirements_ucc.txt" ]; then
840+ python${{ env.PYTHON_VERSION }} -m venv .ucc_venv
841+ echo "Found requirements_ucc.txt. Installing UCC dependencies in an isolated environment"
842+ ./.ucc_venv/bin/python -m pip install -r requirements_ucc.txt
843+ export UCC_GEN="$PWD/.ucc_venv/bin/ucc-gen"
844+
845+ if [ ! -f "$UCC_GEN" ]; then
846+ echo "ucc-gen not found after installing requirements from requirements_ucc.txt"
847+ exit 1
848+ fi
849+
850+ echo "UCC_GEN=$UCC_GEN" >> "$GITHUB_ENV"
851+ else
852+ echo "No UCC requirements file found, skipping UCC setup"
853+ echo "Consider adding a requirements_ucc.txt file and place UCC requirement there, to avoid dependency conflicts"
854+ fi
837855 - id : pip-cache
838856 run : |
839857 echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT"
@@ -889,9 +907,8 @@ jobs:
889907 echo "Version to build is $FINALVERSION"
890908 echo "VERSION=$FINALVERSION" >> "$GITHUB_OUTPUT"
891909 - id : uccgen
892- uses : splunk/addonfactory-ucc-generator-action@v2
893- with :
894- version : ${{ steps.BuildVersion.outputs.VERSION }}
910+ run : |
911+ "${UCC_GEN:-ucc-gen}" build --ta-version ${{ steps.BuildVersion.outputs.VERSION }}
895912
896913 appinspect :
897914 name : quality-appinspect-${{ matrix.tags }}
You can’t perform that action at this time.
0 commit comments