fix(ci): run workshop builds with local Mikero
Deploy DEV Workshop / deploy-dev-workshop (push) Failing after 15m35s
Deploy DEV Workshop / deploy-dev-workshop (push) Failing after 15m35s
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
|||||||
-v "$HOST_REPO:/repo" \
|
-v "$HOST_REPO:/repo" \
|
||||||
-v "$HOST_CACHE:/cache" \
|
-v "$HOST_CACHE:/cache" \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-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'
|
bash -s <<'BRAF_CI'
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@@ -65,22 +65,25 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_mikero() {
|
install_mikero() {
|
||||||
if [[ ! -x /cache/mikero-tools/bin/makepbo ]]; then
|
export WINEPREFIX=/cache/mikero-wine
|
||||||
rm -rf /tmp/mikero-tools-action /cache/mikero-tools
|
export WINEARCH=win64
|
||||||
mkdir -p /tmp/mikero-tools-action /cache/mikero-tools
|
export WINEDEBUG=-all
|
||||||
curl -fsSL \
|
|
||||||
https://github.com/arma-actions/mikero-tools/archive/refs/heads/master.tar.gz \
|
if ! command -v pboProject >/dev/null; then
|
||||||
-o /tmp/mikero-tools-action.tar.gz
|
echo "pboProject is missing from valmo/braf-mikero image." >&2
|
||||||
tar -zxf /tmp/mikero-tools-action.tar.gz \
|
return 1
|
||||||
--strip-components=1 \
|
|
||||||
-C /tmp/mikero-tools-action
|
|
||||||
tar -xf /tmp/mikero-tools-action/linux/*.tar \
|
|
||||||
--strip-components=1 \
|
|
||||||
-C /cache/mikero-tools
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH="/cache/mikero-tools/bin:$PATH"
|
if ! command -v winetricks >/dev/null; then
|
||||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-}:/cache/mikero-tools/lib"
|
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() {
|
is_zero_sha() {
|
||||||
|
|||||||
Reference in New Issue
Block a user