From 83726a22338994096f85cf80ea64f26f1be4823f Mon Sep 17 00:00:00 2001 From: dh Date: Sat, 3 Oct 2026 14:17:44 +0200 Subject: [PATCH] ci: use Wine 11 for .NET 10 targeting-pack enumeration --- .gitea/workflows/pr-push-build-and-test.yaml | 32 +++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/pr-push-build-and-test.yaml b/.gitea/workflows/pr-push-build-and-test.yaml index 286c0a2..44f74a1 100644 --- a/.gitea/workflows/pr-push-build-and-test.yaml +++ b/.gitea/workflows/pr-push-build-and-test.yaml @@ -24,27 +24,23 @@ jobs: - name: Install Wine run: | + set -euo pipefail export DEBIAN_FRONTEND=noninteractive sudo dpkg --add-architecture i386 sudo apt-get update - sudo apt-get install -y --no-install-recommends wine64 wine32 winbind unzip - if [ -d /usr/lib/wine ]; then - echo "/usr/lib/wine" >> "${GITHUB_PATH}" - export PATH="${PATH}:/usr/lib/wine" - fi - if command -v wine >/dev/null 2>&1; then - WINE_BIN="$(command -v wine)" - elif command -v wine64 >/dev/null 2>&1; then - WINE_BIN="$(command -v wine64)" - elif [ -x /usr/lib/wine/wine64 ]; then - WINE_BIN="/usr/lib/wine/wine64" - elif [ -x /usr/lib/wine/wine ]; then - WINE_BIN="/usr/lib/wine/wine" - else - echo "No wine binary found after installation." - ls -la /usr/lib/wine || true - exit 1 - fi + sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg winbind unzip + sudo install -d -m 0755 /etc/apt/keyrings + curl -fsSL https://dl.winehq.org/wine-builds/winehq.key \ + | gpg --dearmor \ + | sudo tee /etc/apt/keyrings/winehq-archive.key >/dev/null + . /etc/os-release + curl -fsSL "https://dl.winehq.org/wine-builds/ubuntu/dists/${VERSION_CODENAME}/winehq-${VERSION_CODENAME}.sources" \ + | sudo tee /etc/apt/sources.list.d/winehq.sources >/dev/null + sudo apt-get update + # Wine 9 cannot enumerate the DOS_DOT patterns used by .NET 10's SDK pack lookup. + sudo apt-get install -y --no-install-recommends "winehq-stable=11.0.0.0~${VERSION_CODENAME}-1" + WINE_BIN="/opt/wine-stable/bin/wine" + test -x "${WINE_BIN}" echo "WINE_BIN=${WINE_BIN}" >> "${GITHUB_ENV}" "${WINE_BIN}" --version