make: factorize code for generating release updates (#12655)

Instead of splitting remove / exclusion of unwanted files in 2-3 places
(`all` rule, `update` rule, and update script in some cases), install
the same files in debug & release builds, and exclude unwanted stuff
when generating the update.

This should finally fix the CI issue with OCR tests (since we don't
remove the `data/dict` & `data/tessdata` directories on release build
anymore).
This commit is contained in:
Benoit Pierre
2024-11-23 20:48:37 +01:00
committed by GitHub
parent de7c5920b8
commit c04023f1d1
15 changed files with 544 additions and 345 deletions

View File

@@ -197,7 +197,9 @@ jobs:
# Generate / upload artifact. {{{
- name: Generate artifact
run: make update --assume-old=base
# Note: ensure the build skeleton is created, so there are no dangling
# symlinks (e.g. `data/dict`) to trip 7zip during artifact generation…
run: make skeleton update --assume-old=base
- name: Upload artifact
uses: actions/upload-artifact@v4