host, build configure flags #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Install Wine dependencies' | |
run: | | |
sudo apt update -y | |
sudo apt install \ | |
gcc-multilib \ | |
gcc-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: 'Checkout Repository' | |
uses: actions/checkout@v3 | |
- name: 'Fetch Wine' | |
run: | | |
mkdir wine-prefix | |
curl -fL https://dl.winehq.org/wine/source/9.x/wine-9.2.tar.xz | tar xvJf - | |
- name: 'Configure Wine' | |
working-directory: ./wine-9.2 | |
run: | | |
./configure \ | |
--prefix=$HOME/wine-prefix \ | |
--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' | |
run: make | |
- name: 'Install Wine' | |
run: make install LDCONFIG=/bin/true UPDATE_DESKTOP_DATABASE=/bin/true | |
- name: Archive the artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: wine-build | |
path: $HOME/wine-prefix |