Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ca3bab3
fix typo
360sym Oct 31, 2022
447a009
Merge pull request #466 from bananaman2020/patch-1
ReenigneArcher Nov 1, 2022
bea78dd
Fix credentials command typo in docs
CrazyStevenz Nov 1, 2022
b310436
Merge pull request #469 from CrazyStevenz/patch-1
ReenigneArcher Nov 2, 2022
6a2a485
Bump babel from 2.10.3 to 2.11.0
dependabot[bot] Nov 2, 2022
cf2de6e
Merge pull request #470 from LizardByte/dependabot/pip/nightly/babel-…
ReenigneArcher Nov 2, 2022
89a0109
fix winget release
ReenigneArcher Nov 2, 2022
92f5c49
Merge pull request #472 from LizardByte/fix/CI-winget-releaser
ReenigneArcher Nov 2, 2022
0bdb887
add linux/arm64/v8 docker platform
ReenigneArcher Nov 2, 2022
4190667
Merge pull request #473 from LizardByte/add/docker-platform-arm64
ReenigneArcher Nov 2, 2022
e924e2e
Bump sphinx-copybutton from 0.5.0 to 0.5.1
dependabot[bot] Nov 16, 2022
66615a0
Merge pull request #500 from LizardByte/dependabot/pip/nightly/sphinx…
ReenigneArcher Nov 16, 2022
01b8ba3
Cover Finder (#216)
mariotaku Nov 18, 2022
390c664
Bump KSXGitHub/github-actions-deploy-aur from 2.5.0 to 2.6.0
dependabot[bot] Nov 18, 2022
4a924ac
Merge pull request #498 from LizardByte/dependabot/github_actions/nig…
ReenigneArcher Nov 18, 2022
8132c82
ci: update global workflows (#501)
LizardByte-bot Nov 18, 2022
4cbf8c0
ci: update global docker (#502)
LizardByte-bot Nov 18, 2022
9af770e
ci: update global workflows (#505)
LizardByte-bot Nov 18, 2022
4c1371a
Add install scripts (Flatpak) (#471)
istori1 Nov 18, 2022
981d878
use npm dependencies
ReenigneArcher Nov 18, 2022
67a569c
Merge branch 'nightly' into update/use-npm-dependencies
ReenigneArcher Nov 19, 2022
f0cfc4a
update build instructions
ReenigneArcher Nov 19, 2022
fbd6807
Merge pull request #504 from LizardByte/update/use-npm-dependencies
ReenigneArcher Nov 20, 2022
d912cce
Update moonlight-common-c to pick up new input structures
cgutman Nov 23, 2022
e39d9bc
Add support for Unicode input messages on Windows
cgutman Nov 23, 2022
5ed17fb
Merge pull request #511 from cgutman/utf8_events
ReenigneArcher Dec 8, 2022
7648496
CMake: win32: fix linker errors with mingw boost 1.80.0-2
psyke83 Dec 7, 2022
97716fa
fix aur build
ReenigneArcher Dec 3, 2022
ed5ee24
Merge pull request #530 from psyke83/restrict_boost_ver
ReenigneArcher Dec 10, 2022
dbe56ee
ci: update global cpp (#533)
LizardByte-bot Dec 10, 2022
a6e47ff
ci: update global workflows (#532)
LizardByte-bot Dec 10, 2022
a7b19f4
ci: update release notifier (#534)
LizardByte-bot Dec 10, 2022
e8aa749
Sunshine prebuilts (#510)
brad-richardson Dec 11, 2022
84fdc7e
change linux build matrix (#468)
ReenigneArcher Dec 12, 2022
6f36939
Bump furo from 2022.9.29 to 2022.12.7 (#531)
dependabot[bot] Dec 12, 2022
c60ebb7
ci: update global workflows (#547)
LizardByte-bot Dec 13, 2022
5b239c1
prepare v0.16.0
ReenigneArcher Dec 13, 2022
fe1321f
Merge pull request #548 from LizardByte/prepare/v0.16.0
ReenigneArcher Dec 13, 2022
37c0f79
CMake: Linux: use standard FreeDesktop udev/systemd paths (#550)
psyke83 Dec 14, 2022
8c8a7bb
update ffmpeg submodules (#552)
ReenigneArcher Dec 14, 2022
12f1ec6
update issue template (#554)
ReenigneArcher Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker_platforms
Original file line number Diff line number Diff line change
@@ -1 +1 @@
linux/amd64
linux/amd64,linux/arm64/v8
14 changes: 12 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ body:
options:
- label: I have read the documentation
required: true
- type: checkboxes
attributes:
label: Is your issue present in the nightly release?
description: Please test the [nightly](https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev) release
options:
- label: This issue is present in the nightly release
required: true
- type: textarea
id: description
attributes:
Expand Down Expand Up @@ -70,7 +77,7 @@ body:
id: version
attributes:
label: Sunshine commit or version
placeholder: eg. 0.14.0
placeholder: eg. 0.16.0
validations:
required: true
- type: dropdown
Expand All @@ -80,7 +87,10 @@ body:
description: The package you installed
options:
- Linux - AppImage
- Linux - deb
- Linux - AUR
- Linux - 20.04-deb
- Linux - 22.04-deb
- Linux - Docker
- Linux - flatpak
- Linux - rpm
- macOS - dmg
Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ updates:
time: "00:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
target-branch: "nightly"
open-pull-requests-limit: 10
6 changes: 5 additions & 1 deletion .github/pr_release_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ This PR was created automatically.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Dependency update (updates to dependencies)
- [ ] Documentation update (changes to documentation)
- [ ] Repository update (changes to repository files)
- [ ] Repository update (changes to repository files, e.g. `.github/...`)

## Branch Updates
- [x] I want maintainers to keep my branch updated

## Changelog Summary
<!--- Summarize all the changes in a bulleted list. --->
133 changes: 88 additions & 45 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
mv ./build/PKGBUILD ./artifacts/

- name: Validate package
uses: hapakaien/archlinux-package-action@v2.2.0
uses: LizardByte/archlinux-package-action@master
with:
path: artifacts
flags: '--syncdeps --noconfirm'
Expand All @@ -234,7 +234,7 @@ jobs:

- name: Publish AUR package
if: ${{ env.aur_publish == 'true' }}
uses: KSXGitHub/github-actions-deploy-aur@v2.5.0
uses: KSXGitHub/github-actions-deploy-aur@v2.6.0
with:
pkgname: ${{ env.aur_pkg }}
pkgbuild: ./artifacts/PKGBUILD
Expand All @@ -260,17 +260,21 @@ jobs:

- name: Setup Dependencies Linux Flatpak
run: |
PLATFORM_VERSION=21.08

sudo apt-get update -y
sudo apt-get install -y \
cmake \
qemu-user-static \
flatpak
sudo su $(whoami) -c 'flatpak --user remote-add --if-not-exists flathub \
https://flathub.org/repo/flathub.flatpakrepo'
sudo su $(whoami) -c 'flatpak --user install -y flathub \
flatpak \
qemu-user-static
sudo su $(whoami) -c "flatpak --user remote-add --if-not-exists flathub \
https://flathub.org/repo/flathub.flatpakrepo"
sudo su $(whoami) -c "flatpak --user install -y flathub \
org.flatpak.Builder \
org.freedesktop.Platform/${{ matrix.arch }}/21.08 \
org.freedesktop.Sdk/${{ matrix.arch }}/21.08'
org.freedesktop.Platform/${{ matrix.arch }}/${PLATFORM_VERSION} \
org.freedesktop.Sdk/${{ matrix.arch }}/${PLATFORM_VERSION} \
org.freedesktop.Sdk.Extension.node18/${{ matrix.arch }}/${PLATFORM_VERSION} \
"

- name: Cache Flatpak build
uses: actions/cache@v3
Expand Down Expand Up @@ -349,16 +353,21 @@ jobs:

build_linux:
name: Linux
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ matrix.dist }}
needs: [check_changelog, setup_release]
strategy:
fail-fast: false # false to test all, true to fail entire job if any fail
matrix:
include: # package these differently
- type: cpack
EXTRA_ARGS: ''
dist: 20.04
- type: cpack
EXTRA_ARGS: ''
dist: 22.04
- type: appimage
EXTRA_ARGS: '-DSUNSHINE_CONFIGURE_APPIMAGE=ON'
dist: 20.04

steps:
- name: Checkout
Expand All @@ -368,26 +377,59 @@ jobs:

- name: Setup Dependencies Linux
run: |
sudo add-apt-repository ppa:savoury1/ffmpeg4 -y
# sudo add-apt-repository ppa:savoury1/boost-defaults-1.71 -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y

sudo apt-get update -y
if [[ ${{ matrix.dist }} == "18.04" ]]; then
# Ubuntu 18.04 packages
sudo add-apt-repository ppa:savoury1/boost-defaults-1.71 -y

sudo apt-get update -y
sudo apt-get install -y \
libboost-filesystem1.71-dev \
libboost-log1.71-dev \
libboost-regex1.71-dev \
libboost-thread1.71-dev

# Install cmake
wget https://cmake.org/files/v3.22/cmake-3.22.2-linux-x86_64.sh
chmod +x cmake-3.22.2-linux-x86_64.sh
mkdir /opt/cmake
./cmake-3.22.2-linux-x86_64.sh --prefix=/opt/cmake --skip-license
ln --force --symbolic /opt/cmake/bin/cmake /usr/local/bin/cmake
cmake --version

# install newer tar from focal... appimagelint fails on 18.04 without this
echo "original tar version"
tar --version
wget -O tar.deb http://security.ubuntu.com/ubuntu/pool/main/t/tar/tar_1.30+dfsg-7ubuntu0.20.04.2_amd64.deb
sudo apt-get -y install -f ./tar.deb
echo "new tar version"
tar --version
else
# Ubuntu 20.04+ packages
sudo apt-get update -y
sudo apt-get install -y \
cmake \
libboost-filesystem-dev \
libboost-log-dev \
libboost-thread-dev
fi

sudo apt-get install -y \
build-essential \
cmake \
gcc-10 \
g++-10 \
libavdevice-dev \
libboost-filesystem-dev \
libboost-log-dev \
libboost-thread-dev \
libcap-dev \
libcurl4-openssl-dev \
libdrm-dev \
libevdev-dev \
libpulse-dev \
libnuma-dev \
libopus-dev \
libpulse-dev \
libssl-dev \
libva-dev \
libvdpau-dev \
libwayland-dev \
libx11-dev \
libxcb-shm0-dev \
Expand All @@ -397,24 +439,19 @@ jobs:
libxrandr-dev \
libxtst-dev \
wget
# # Ubuntu 20.04+ packages
# libboost-filesystem-dev
# libboost-log-dev
# libboost-thread-dev

# # Ubuntu 18.04 packages
# libboost-filesystem1.71-dev \
# libboost-log1.71-dev \
# libboost-regex1.71-dev \
# libboost-thread1.71-dev \

# clean apt cache
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*

# Update gcc alias
# https://stackoverflow.com/a/70653945/11214013
sudo update-alternatives --install \
/usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
/usr/bin/gcc gcc /usr/bin/gcc-10 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10

# Install CuDA
sudo wget \
Expand All @@ -424,19 +461,15 @@ jobs:
sudo /root/cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm
sudo rm /root/cuda.run

# # Install cmake (necessary for 18.04)
# wget https://cmake.org/files/v3.22/cmake-3.22.2-linux-x86_64.sh
# chmod +x cmake-3.22.2-linux-x86_64.sh
# mkdir /opt/cmake
# ./cmake-3.22.2-linux-x86_64.sh --prefix=/opt/cmake --skip-license
# ln --force --symbolic /opt/cmake/bin/cmake /usr/local/bin/cmake
# cmake --version

- name: Build Linux
run: |
mkdir -p build
mkdir -p artifacts

pushd "./src_assets/common/assets/web"
npm install
popd

cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
Expand All @@ -454,13 +487,13 @@ jobs:
if: ${{ matrix.type == 'cpack' }}
working-directory: build
run: |
# package
cpack -G DEB
cpack -G RPM
mv ./cpack_artifacts/Sunshine.deb ../artifacts/sunshine-${{ matrix.dist }}.deb

# move
mv ./cpack_artifacts/Sunshine.deb ../artifacts/sunshine.deb
mv ./cpack_artifacts/Sunshine.rpm ../artifacts/sunshine.rpm
if [[ ${{ matrix.dist }} == "20.04" ]]; then
cpack -G RPM
mv ./cpack_artifacts/Sunshine.rpm ../artifacts/sunshine.rpm
fi

- name: Set AppImage Version
if: ${{ matrix.type == 'appimage' && ( needs.check_changelog.outputs.next_version_bare != needs.check_changelog.outputs.last_version ) }} # yamllint disable-line rule:line-length
Expand Down Expand Up @@ -517,7 +550,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: sunshine-linux-${{ matrix.type }}
name: sunshine-linux-${{ matrix.type }}-${{ matrix.dist }}
path: artifacts/

- name: Create/Update GitHub Release
Expand Down Expand Up @@ -548,13 +581,17 @@ jobs:
- name: Setup Dependencies MacOS
run: |
# install dependencies using homebrew
brew install boost cmake ffmpeg opus
brew install boost cmake curl node opus

# fix openssl header not found
ln -sf /usr/local/opt/openssl/include/openssl /usr/local/include/openssl

- name: Build MacOS
run: |
pushd "./src_assets/common/assets/web"
npm install
popd

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
Expand Down Expand Up @@ -846,6 +883,7 @@ jobs:
mingw-w64-x86_64-binutils
mingw-w64-x86_64-boost
mingw-w64-x86_64-cmake
mingw-w64-x86_64-curl
mingw-w64-x86_64-nsis
mingw-w64-x86_64-openssl
mingw-w64-x86_64-opus
Expand All @@ -854,6 +892,11 @@ jobs:
nasm
yasm

- name: Install npm packages
working-directory: src_assets/common/assets/web
run: |
npm install

- name: Build Windows
shell: msys2 {0}
run: |
Expand Down Expand Up @@ -901,7 +944,7 @@ jobs:

release-winget:
name: Release to WinGet
needs: build_win
needs: [setup_release, build_win]
if: ${{ needs.setup_release.outputs.create_release == 'true' && github.ref == 'refs/heads/master' }}
runs-on: windows-latest # the required action can only be run on Windows
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/auto-create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

jobs:
create_pr:
if: startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ on:

jobs:
autoapprove:
if: >
if: >-
contains(fromJson('["LizardByte-bot"]'), github.event.pull_request.user.login) &&
contains(fromJson('["LizardByte-bot"]'), github.actor)
contains(fromJson('["LizardByte-bot"]'), github.actor) &&
startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: Autoapproving
Expand All @@ -36,6 +37,7 @@ jobs:
})

automerge:
if: startsWith(github.repository, 'LizardByte/')
needs: [autoapprove]
runs-on: ubuntu-latest
concurrency:
Expand Down
Loading