maelstrom — audaspace → 1.8.0 (#13555)

* Modify tools/build_updated_packages.rb to support rebuilds

* Modify .github/workflows/Build.yml to support rebuilds and pass arguments more cleanly

* Rework adding files in the generate PR workflow

* test

* maelstrom: Package File Update Run on linux/amd64 container.

* maelstrom: Package File Update Run on linux/arm/v7 container.

* fix pr title determining error caught by lint

---------

Co-authored-by: Zopolis4 <creatorsmithmdt@gmail.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
This commit is contained in:
chromebrew-actions[bot]
2025-11-22 02:11:55 -06:00
committed by GitHub
parent 5d96e03bda
commit 4cf2be9030
8 changed files with 68 additions and 71 deletions

View File

@@ -1,6 +1,6 @@
---
name: Build
run-name: Build ${{ inputs.branch || github.ref_name }} for ${{ ( inputs.build-on-i686 ) && ' i686 ' || '' }}${{ ( inputs.build-on-x86_64 ) && ' x86_64 ' || '' }}${{ ( inputs.build-on-armv7l ) && ' armv7l ' || '' }} by @${{ github.actor }}
run-name: Build ${{ inputs.branch || github.ref_name }} for ${{ inputs.build-on }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
@@ -18,6 +18,11 @@ on:
required: false
type: boolean
default: 'false'
rebuild_packages:
description: "Rebuild packages even if they already have binaries."
required: false
type: boolean
default: 'false'
pr_title:
description: "Title of PR"
required: false
@@ -37,20 +42,10 @@ on:
required: false
type: number
default: 5.5
build-on-i686:
description: "Build on i686"
default: true
type: boolean
required: false
build-on-x86_64:
description: "Build on x86_64"
default: true
type: boolean
required: false
build-on-armv7l:
description: "Build on armv7l"
default: true
type: boolean
build-on:
description: "Architectures to build on"
default: 'i686 x86_64 armv7l'
type: string
required: false
env:
BRANCH: ${{ inputs.branch || github.ref_name }}
@@ -188,9 +183,9 @@ jobs:
armv7l_PACKAGES: ${{ steps.get-compatibility.outputs.armv7l_PACKAGES }}
run: |
function join_by { local IFS="$1"; shift; echo "$*"; }
[[ "${{ ( inputs.build-on-i686) }}" == 'true' ]] && [[ -n "${i686_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"i686\"" )
[[ "${{ ( inputs.build-on-x86_64) }}" == 'true' ]] && [[ -n "${x86_64_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"x86_64\"" )
[[ "${{ ( inputs.build-on-armv7l) }}" == 'true' ]] && [[ -n "${armv7l_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"armv7l\"" )
[[ "${{ ( inputs.build-on) }}" =~ "i686" ]] && [[ -n "${i686_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"i686\"" )
[[ "${{ ( inputs.build-on) }}" =~ "x86_64" ]] && [[ -n "${x86_64_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"x86_64\"" )
[[ "${{ ( inputs.build-on) }}" =~ "armv7l" ]] && [[ -n "${armv7l_PACKAGES}" ]] && export CONTAINER_ARCH+=( "\"armv7l\"" )
export ARCHES="$(join_by , "${CONTAINER_ARCH[@]}")"
echo "matrix=[${ARCHES}]" >> $GITHUB_OUTPUT
echo "matrix=[${ARCHES}]"
@@ -378,7 +373,7 @@ jobs:
--tmpfs /tmp \
--ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" \
"${CONTAINER}" \
/bin/chromebrewstart "/output/tools/github_actions_update_builder${{ github.event.inputs.allow_fail == 'true' && '_allowing_failures' || ''}}.sh" > >(tee -a /tmp/build.log) 2> >(tee -a /tmp/build.log >&2)
/bin/chromebrewstart "/output/tools/github_actions_update_builder.sh ${{ github.event.inputs.allow_fail == 'true' && '--continue-after-failed-builds' || ''}} ${{ github.event.inputs.rebuild_packages == 'true' && '--rebuild' || ''}}" > >(tee -a /tmp/build.log) 2> >(tee -a /tmp/build.log >&2)
grep "Built and Uploaded:" /tmp/build.log || true
echo "Deleting build output directories."
sudo rm -rf release pkg_cache

View File

@@ -365,7 +365,7 @@ jobs:
--tmpfs /tmp \
--ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)" \
"${CONTAINER}" \
/bin/chromebrewstart "/output/tools/github_actions_update_builder_allowing_failures.sh" > >(tee -a /tmp/build.log) 2> >(tee -a /tmp/build.log >&2)
/bin/chromebrewstart "/output/tools/github_actions_update_builder.sh --continue-after-failed-builds" > >(tee -a /tmp/build.log) 2> >(tee -a /tmp/build.log >&2)
grep "Built and Uploaded:" /tmp/build.log || true
echo "Deleting build output directories."
sudo rm -rf release pkg_cache
@@ -378,8 +378,7 @@ jobs:
git stash || true
git fetch origin ${{ inputs.branch || github.ref_name }}
git stash pop || true
git add -A
git commit -m "${{ inputs.branch || github.ref_name }}: Package File Update Run on ${PLATFORM} container." && git push origin ${{ inputs.branch || github.ref_name }}
git commit -am "${{ inputs.branch || github.ref_name }}: Package File Update Run on ${PLATFORM} container." && git push origin ${{ inputs.branch || github.ref_name }}
git log --oneline -10
fi
build-check: