Skip to content

Commit

Permalink
Add ntsync builds to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kron4ek committed May 12, 2024
1 parent 04b2e45 commit 543d55b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/wine-ntsync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Wine NTSYNC CI

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: bootstraps.yml
workflow_conclusion: success
path: /opt
- name: Build Wine
run: |
sudo apt update
sudo apt install debootstrap perl git wget xz-utils bubblewrap autoconf
sudo tar -C /opt -xpf /opt/Bootstraps/bootstraps.tar.xz
chmod +x build_wine.sh
WINE_BRANCH=staging-tkg-ntsync ./build_wine.sh
sha256sum *.tar.xz
- uses: actions/upload-artifact@v3
with:
name: Wine-Staging-TkG-ntsync
path: ./*.tar.xz
12 changes: 8 additions & 4 deletions build_wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi
# use their own versions.
export WINE_VERSION="${WINE_VERSION:-latest}"

# Available branches: vanilla, staging, staging-tkg, proton
# Available branches: vanilla, staging, proton, staging-tkg, staging-tkg-ntsync
export WINE_BRANCH="${WINE_BRANCH:-staging}"

# Available proton branches: proton_3.7, proton_3.16, proton_4.2, proton_4.11
Expand Down Expand Up @@ -206,11 +206,15 @@ if [ -n "${CUSTOM_SRC_PATH}" ]; then

WINE_VERSION="$(cat wine/VERSION | tail -c +14)"
BUILD_NAME="${WINE_VERSION}"-custom
elif [ "$WINE_BRANCH" = "staging-tkg" ]; then
git clone https://github.com/Kron4ek/wine-tkg wine
elif [ "$WINE_BRANCH" = "staging-tkg" ] || [ "$WINE_BRANCH" = "staging-tkg-ntsync" ]; then
if [ "$WINE_BRANCH" = "staging-tkg" ]; then
git clone https://github.com/Kron4ek/wine-tkg wine
else
git clone https://github.com/Kron4ek/wine-tkg wine -b ntsync
fi

WINE_VERSION="$(cat wine/VERSION | tail -c +14)"
BUILD_NAME="${WINE_VERSION}"-staging-tkg
BUILD_NAME="${WINE_VERSION}"-"${WINE_BRANCH}"
elif [ "$WINE_BRANCH" = "proton" ]; then
if [ -z "${PROTON_BRANCH}" ]; then
git clone https://github.com/ValveSoftware/wine
Expand Down
1 change: 1 addition & 0 deletions create_ubuntu_bootstraps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ wget -O vulkan-headers.tar.gz https://github.com/KhronosGroup/Vulkan-Headers/arc
wget -O spirv-headers.tar.gz https://github.com/KhronosGroup/SPIRV-Headers/archive/${spirv_headers_version}.tar.gz
wget -O libpcap.tar.gz https://www.tcpdump.org/release/libpcap-${libpcap_version}.tar.gz
wget -O libxkbcommon.tar.xz https://xkbcommon.org/download/libxkbcommon-${libxkbcommon_version}.tar.xz
wget -O /usr/include/linux/ntsync.h https://raw.githubusercontent.com/zen-kernel/zen-kernel/f787614c40519eb2c8ebdc116b2cd09d46e5ec85/include/uapi/linux/ntsync.h
if [ -d /usr/lib/i386-linux-gnu ]; then wget -O wine.deb https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-i386/wine-stable_4.0.3~bionic_i386.deb; fi
if [ -d /usr/lib/x86_64-linux-gnu ]; then wget -O wine.deb https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-amd64/wine-stable_4.0.3~bionic_amd64.deb; fi
git clone git://source.winehq.org/git/vkd3d.git
Expand Down

0 comments on commit 543d55b

Please sign in to comment.