fix(ci): run workshop builds with local Mikero
Deploy DEV Workshop / deploy-dev-workshop (push) Failing after 15m35s

This commit is contained in:
Valmo Trindade
2026-07-30 00:43:00 +00:00
parent 39352a0d76
commit f492aacf78
+18 -15
View File
@@ -46,7 +46,7 @@ jobs:
-v "$HOST_REPO:/repo" \
-v "$HOST_CACHE:/cache" \
-v /var/run/docker.sock:/var/run/docker.sock \
docker.io/gitea/runner-images:ubuntu-24.04-full-v26.07.01 \
valmo/braf-mikero:3.23.8.60 \
bash -s <<'BRAF_CI'
set -euo pipefail
@@ -65,22 +65,25 @@ jobs:
}
install_mikero() {
if [[ ! -x /cache/mikero-tools/bin/makepbo ]]; then
rm -rf /tmp/mikero-tools-action /cache/mikero-tools
mkdir -p /tmp/mikero-tools-action /cache/mikero-tools
curl -fsSL \
https://github.com/arma-actions/mikero-tools/archive/refs/heads/master.tar.gz \
-o /tmp/mikero-tools-action.tar.gz
tar -zxf /tmp/mikero-tools-action.tar.gz \
--strip-components=1 \
-C /tmp/mikero-tools-action
tar -xf /tmp/mikero-tools-action/linux/*.tar \
--strip-components=1 \
-C /cache/mikero-tools
export WINEPREFIX=/cache/mikero-wine
export WINEARCH=win64
export WINEDEBUG=-all
if ! command -v pboProject >/dev/null; then
echo "pboProject is missing from valmo/braf-mikero image." >&2
return 1
fi
export PATH="/cache/mikero-tools/bin:$PATH"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}:/cache/mikero-tools/lib"
if ! command -v winetricks >/dev/null; then
apt-get install -y winetricks
fi
if [[ ! -f "$WINEPREFIX/drive_c/windows/system32/mfc140u.dll" ]]; then
echo "Initializing the persistent Mikero Wine runtime."
xvfb-run -a winetricks -q vcrun2015
fi
sed -i "s#exec /usr/lib/wine/wine64#exec xvfb-run -a /usr/bin/wine#" /usr/local/bin/pboProject
}
is_zero_sha() {