ci: install Wine directly instead of third-party action
Build Server .exe / build (push) Failing after 7s

- Replaced egor-tensin/setup-wine with manual Wine installation
- Uses WineHQ repo for winehq-stable on Ubuntu
- Should work with Gitea's action registry
This commit is contained in:
Imrayya
2026-07-01 11:46:12 +00:00
parent e1637b56a5
commit 435703ab9d
+21 -15
View File
@@ -21,26 +21,32 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Wine - name: Install Wine
uses: egor-tensin/setup-wine@v2
with:
prefix: /home/runner/wine-prefix
version: "9.0"
- name: Configure Wine prefix (64-bit)
run: | run: |
export WINEPREFIX=/home/runner/wine-prefix sudo dpkg --add-architecture i386
sudo mkdir -pm /etc/apt/keyrings
sudo wget -qO /etc/apt/keyrings/winehq-archive.key \
https://dl.winehq.org/wine-builds/winehq.key
sudo wget -qO /etc/apt/sources.list.d/winehq.list \
https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable -y
- name: Set up Wine prefix
run: |
export WINEPREFIX=$HOME/wine-prefix
mkdir -p "$WINEPREFIX"
wineboot --init wineboot --init
wine reg add \
"HKLM\\Software\\Wine\\DllOverrides" \
/v "*" /t REG_MULTI_SZ /d "" /f
- name: Set up Python in Wine - name: Download Python installer
run: | run: |
export WINEPREFIX=/home/runner/wine-prefix
wget -q \ wget -q \
https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe \ https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe \
-O /tmp/python.exe -O /tmp/python.exe
- name: Install Python in Wine
run: |
export WINEPREFIX=$HOME/wine-prefix
wine /tmp/python.exe \ wine /tmp/python.exe \
/quiet \ /quiet \
InstallAllUsers=1 \ InstallAllUsers=1 \
@@ -50,8 +56,8 @@ jobs:
- name: Add Python to PATH - name: Add Python to PATH
run: | run: |
echo "/home/runner/wine-prefix/drive_c/Python312" >> $GITHUB_PATH echo "$HOME/wine-prefix/drive_c/Python312" >> $GITHUB_PATH
echo "${WINEPREFIX}/drive_c/Python312/Scripts" >> $GITHUB_PATH echo "$HOME/wine-prefix/drive_c/Python312/Scripts" >> $GITHUB_PATH
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |