Modernize build, remove libdir patches, fix workflows — leptonica: 1.86.0 → 1.87.0-pre1 (#13591)

* Modernize build, try removing patches for libdir.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Use fixed workflow.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust to prerelease to get libdir fix.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust build workflow to use same changed files logic as in Generate PR workflow.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Pull in head sha determination changes from Build workflow.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

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

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
This commit is contained in:
chromebrew-actions[bot]
2025-11-23 01:12:48 -06:00
committed by GitHub
parent 38652e1fa4
commit 2b275bde82
5 changed files with 31 additions and 38 deletions

View File

@@ -77,6 +77,7 @@ jobs:
runs-on: ubuntu-24.04
outputs:
timestamp: ${{ steps.set-timestamp.outputs.TIMESTAMP }} # https://stackoverflow.com/a/75142892
current_head: ${{ steps.get-current-head.outputs.CURRENT_HEAD }}
changed_packages: ${{ steps.changed-packages.outputs.CHANGED_PACKAGES }}
glibc_232_compat: ${{ steps.get-compatibility.outputs.GLIBC_232_COMPATIBLE_PACKAGES }}
glibc_237_compat: ${{ steps.get-compatibility.outputs.GLIBC_237_COMPATIBLE_PACKAGES }}
@@ -85,6 +86,12 @@ jobs:
armv7l_packages: ${{ steps.get-compatibility.outputs.armv7l_PACKAGES }}
matrix: ${{ steps.set-generate-matrix.outputs.matrix }}
steps:
- name: Set Timestamp
id: set-timestamp
run: |
TIMESTAMP="$(date -u +%F-%H%Z)"
export TIMESTAMP
echo "TIMESTAMP=${TIMESTAMP}" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v5
with:
fetch-depth: 0
@@ -103,17 +110,16 @@ jobs:
# exists.
[[ "${{ ( inputs.update_rebase_to_master ) }}" == 'true' ]] && gh pr update-branch --rebase || true
fi
- name: Set Timestamp
id: set-timestamp
- name: Get Current HEAD hash
id: get-current-head
run: |
TIMESTAMP="$(date -u +%F-%H%Z)"
export TIMESTAMP
echo "TIMESTAMP=${TIMESTAMP}" >> "$GITHUB_OUTPUT"
echo "CURRENT_HEAD=$(git ls-remote https://github.com/${{ github.repository }}.git | head -1 | sed 's/HEAD//')" >> "$GITHUB_OUTPUT"
echo "CURRENT_HEAD is $(git ls-remote https://github.com/${{ github.repository }}.git | head -1 | sed 's/HEAD//')"
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
base_sha: master
base_sha: ${{ steps.get-current-head.outputs.CURRENT_HEAD }}
files_yaml: |
packages:
- packages/*.rb

View File

@@ -57,6 +57,7 @@ jobs:
if: ${{ ( github.repository_owner == 'chromebrew' ) && ( inputs.branch != 'master' ) }}
runs-on: ubuntu-24.04
outputs:
current_head: ${{ steps.get-current-head.outputs.CURRENT_HEAD }}
changed_packages: ${{ steps.changed-packages.outputs.CHANGED_PACKAGES }}
glibc_232_compat: ${{ steps.get-compatibility.outputs.GLIBC_232_COMPATIBLE_PACKAGES }}
glibc_237_compat: ${{ steps.get-compatibility.outputs.GLIBC_237_COMPATIBLE_PACKAGES }}
@@ -89,11 +90,16 @@ jobs:
# before continuing.
gh pr update-branch || true
fi
- name: Get Current HEAD hash
id: get-current-head
run: |
echo "CURRENT_HEAD=$(git ls-remote https://github.com/${{ github.repository }}.git | head -1 | sed 's/HEAD//')" >> "$GITHUB_OUTPUT"
echo "CURRENT_HEAD is $(git ls-remote https://github.com/${{ github.repository }}.git | head -1 | sed 's/HEAD//')"
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
base_sha: master
base_sha: ${{ steps.get-current-head.outputs.CURRENT_HEAD }}
files_yaml: |
packages:
- packages/*.rb