1
0
Fork 0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-05-06 11:16:07 +02:00

Fix the posix spwan error

- make the 'otapackage` target instead of bacon
- rename the ROM zip file from "lineage_$codename-ota-eng.root.zip"
  to the expected "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip"
This commit is contained in:
Pete Fotheringham 2024-03-13 08:21:02 +00:00 committed by Pete
parent b1dcd2f993
commit 29049c52b6

View File

@ -377,11 +377,16 @@ for branch in ${BRANCH_NAME//,/ }; do
# Start the build
echo ">> [$(date)] Starting build for $codename, $branch branch" | tee -a "$DEBUG_LOG"
build_successful=false
if (set +eu ; mka "${jobs_arg[@]}" bacon) &>> "$DEBUG_LOG"; then
if (set +eu ; mka "${jobs_arg[@]}" otapackage ) &>> "$DEBUG_LOG"; then
# Move produced ZIP files to the main OUT directory
echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR/$zipsubdir'" | tee -a "$DEBUG_LOG"
cd out/target/product/"$codename"
# the zip produced by 'mka otapackage' is "lineage_$device-ota-eng.root.zip
# we need it to be "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip"
mv "lineage_$codename-ota-eng.root.zip" "lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename.zip"
files_to_hash=()
for build in lineage-*.zip; do
cp -v system/build.prop "$ZIP_DIR/$zipsubdir/$build.prop" &>> "$DEBUG_LOG"