[ci, tools] working find-unused-strings, android strings CI (#3036)

Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3036
This commit is contained in:
crueter 2025-11-17 15:52:30 +01:00
parent 4f389338bd
commit eb2d9ea574
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
6 changed files with 56 additions and 13 deletions

View file

@ -1,7 +1,10 @@
#!/bin/sh -e
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
which optipng || exit
NPROC=$(nproc)
[ -z "$NPROC" ] && NPROC=8
find . -type f -iname '*.png' | xargs -P $NPROC -I {} optipng -o7 {}
NPROC=$(nproc 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
# shellcheck disable=SC2038
find . -type f -iname '*.png' | xargs -P "$NPROC" -I {} optipng -o7 {}