Skip to content

update deps & make jobs #9

update deps & make jobs

update deps & make jobs #9

Workflow file for this run

name: Build Wine
on:
push:
permissions:
contents: read
env:
wine_dest: ${{ github.workspace }}/wine-build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Install Wine dependencies'
run: |
sudo apt update -y
sudo apt install \
build-essential \
curl \
mingw-w64 \
libasound2-dev \
libpulse-dev \
libdbus-1-dev \
libfontconfig-dev \
libfreetype-dev \
libgl-dev \
libunwind-dev \
libx11-dev \
libxcomposite-dev \
libxcursor-dev \
libxfixes-dev \
libxi-dev \
libxrandr-dev \
libxrender-dev \
libxext-dev \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libosmesa6-dev \
libudev-dev \
libvulkan-dev \
libkrb5-dev \
libusb-1.0-0-dev \
libv4l-dev \
ccache
- name: 'Configure ccache'
uses: hendrikmuhs/[email protected]
- name: 'Setup ccache'
run: |
echo "PATH=/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" >> $GITHUB_ENV
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Fetch Wine'
run: |
mkdir -p ${{ env.wine_dest }}
curl -fL https://dl.winehq.org/wine/source/9.x/wine-9.2.tar.xz | tar xJf -
- name: 'Configure Wine'
working-directory: wine-9.2
run: |
./configure \
--prefix=${{ env.wine_dest }} \
--enable-win64 \
--host=x86_64 \
--build=x86_64 \
--with-mingw=ccache x86_64-w64-mingw64-gcc \
--disable-win16 \
--disable-tests \
--with-alsa \
--with-pulse \
--with-dbus \
--with-fontconfig \
--with-freetype \
--with-opengl \
--without-wayland \
--with-x \
--with-xcomposite \
--with-xfixes \
--with-xinput2 \
--with-xrandr \
--with-xrender \
--with-gstreamer \
--with-vulkan \
--with-krb5 \
--with-usb \
--with-v4l2
- name: 'Build Wine'
working-directory: wine-9.2
run: make -j$(($(nproc) + 1))
- name: 'Install Wine'
working-directory: wine-9.2
run: make install LDCONFIG=/bin/true UPDATE_DESKTOP_DATABASE=/bin/true
- name: Archive the artifacts
uses: actions/upload-artifact@v4
with:
name: wine-build
path: ${{ env.wine_dest }}