Skip to content

Commit b484060

Browse files
Merge branch 'nightly' into master
2 parents b421c8e + 894cb65 commit b484060

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+702
-536
lines changed

.clang-format

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# This file is centrally managed in https://github.com/<organization>/.github/
23
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
34
# the above-mentioned repo.
@@ -6,15 +7,15 @@
67
BasedOnStyle: LLVM
78
AccessModifierOffset: -2
89
AlignAfterOpenBracket: DontAlign
9-
AlignConsecutiveAssignments: true
10+
AlignConsecutiveAssignments: Consecutive
1011
AlignOperands: Align
1112
AllowAllArgumentsOnNextLine: false
1213
AllowAllConstructorInitializersOnNextLine: false
1314
AllowAllParametersOfDeclarationOnNextLine: false
1415
AllowShortBlocksOnASingleLine: Always
1516
AllowShortCaseLabelsOnASingleLine: false
1617
AllowShortFunctionsOnASingleLine: All
17-
AllowShortIfStatementsOnASingleLine: Always
18+
AllowShortIfStatementsOnASingleLine: WithoutElse
1819
AllowShortLambdasOnASingleLine: All
1920
AllowShortLoopsOnASingleLine: true
2021
AlwaysBreakAfterReturnType: None
@@ -62,7 +63,7 @@ SpaceBeforeParens: Never
6263
SpaceBeforeRangeBasedForLoopColon: true
6364
SpaceInEmptyParentheses: false
6465
SpacesBeforeTrailingComments: 1
65-
SpacesInAngles: false
66+
SpacesInAngles: Never
6667
SpacesInCStyleCastParentheses: false
6768
SpacesInContainerLiterals: false
6869
SpacesInParentheses: false

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[flake8]
22
filename =
3-
*.py
3+
*.py,
4+
*.pys
45
max-line-length = 120
56
extend-exclude =
67
venv/

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@
55

66
blank_issues_enabled: false
77
contact_links:
8-
- name: Discord support
9-
url: https://docs.lizardbyte.dev/about/support.html#discord
10-
about: Ask questions in Discord
11-
- name: Reddit support
12-
url: https://www.reddit.com/r/LizardByte
13-
about: Get community support on Reddit
14-
- name: Facebook support
15-
url: https://www.facebook.com/groups/lizardbyte
16-
about: Get community support on Facebook
8+
- name: Support Center
9+
url: https://app.lizardbyte.dev/support
10+
about: Official LizardByte support
1711
- name: Feature request
18-
url: https://feedback.lizardbyte.dev
12+
url: https://app.lizardbyte.dev/feedback
1913
about: Share your suggestions or ideas to help us improve

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
version: 2
77
updates:
8+
- package-ecosystem: "docker"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
time: "00:00"
13+
target-branch: "nightly"
14+
open-pull-requests-limit: 10
15+
816
- package-ecosystem: "github-actions"
917
directory: "/"
1018
schedule:

.github/label-actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ invalid:duplicate:
2525
invalid:support:
2626
comment: >
2727
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports.
28-
However, this issue appears to be a support request. Please use
29-
[Discord](https://docs.lizardbyte.dev/about/support.html#discord) for support issues. Thanks.
28+
However, this issue appears to be a support request. Please use our
29+
[Support Center](https://app.lizardbyte.dev/support) for support issues. Thanks.
3030
close: true
3131
lock: true
3232
lock-reason: 'off-topic'

.github/workflows/CI.yml

Lines changed: 44 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
steps:
7575
- name: Checkout
76-
uses: actions/checkout@v2
76+
uses: actions/checkout@v3
7777

7878
- name: Setup Dependencies Linux AUR
7979
run: |
@@ -106,7 +106,6 @@ jobs:
106106
107107
echo "aur_publish=true" >> $GITHUB_ENV
108108
elif [[ ${{ github.ref == 'refs/heads/nightly' }} ]]; then
109-
aur_pkg=sunshine-git
110109
sub_version=".r${commit}"
111110
112111
echo "aur_publish=true" >> $GITHUB_ENV
@@ -158,7 +157,7 @@ jobs:
158157

159158
- name: Publish AUR package
160159
if: ${{ env.aur_publish == 'true' }}
161-
uses: KSXGitHub/github-actions-deploy-aur@v2.4.1
160+
uses: KSXGitHub/github-actions-deploy-aur@v2.5.0
162161
with:
163162
pkgname: ${{ env.aur_pkg }}
164163
pkgbuild: ./artifacts/PKGBUILD
@@ -172,8 +171,15 @@ jobs:
172171

173172
build_linux_flatpak:
174173
name: Linux Flatpak
175-
runs-on: ubuntu-latest
174+
runs-on: ubuntu-22.04
176175
needs: check_changelog
176+
strategy:
177+
fail-fast: false # false to test all, true to fail entire job if any fail
178+
matrix:
179+
arch: ['x86_64', 'aarch64']
180+
exclude:
181+
# exclude `aarch64` on anything except a release triggering event
182+
- arch: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) && '' || 'aarch64' }}
177183

178184
steps:
179185
- name: Checkout
@@ -184,11 +190,22 @@ jobs:
184190
sudo apt-get update -y
185191
sudo apt-get install -y \
186192
cmake \
193+
qemu-user-static \
187194
flatpak
188-
sudo su $(whoami) -c 'flatpak remote-add --user --if-not-exists flathub \
195+
sudo su $(whoami) -c 'flatpak --user remote-add --if-not-exists flathub \
189196
https://flathub.org/repo/flathub.flatpakrepo'
190-
sudo su $(whoami) -c 'flatpak install --user flathub \
191-
org.flatpak.Builder org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08 -y'
197+
sudo su $(whoami) -c 'flatpak --user install -y flathub \
198+
org.flatpak.Builder \
199+
org.freedesktop.Platform/${{ matrix.arch }}/21.08 \
200+
org.freedesktop.Sdk/${{ matrix.arch }}/21.08'
201+
202+
- name: Cache Flatpak build
203+
uses: actions/cache@v3
204+
with:
205+
path: ./build/.flatpak-builder
206+
key: flatpak-${{ matrix.arch }}-${{ github.sha }}
207+
restore-keys: |
208+
flatpak-${{ matrix.arch }}-
192209
193210
- name: Configure Flatpak Manifest
194211
run: |
@@ -218,21 +235,29 @@ jobs:
218235
cmake -DGITHUB_CLONE_URL=${clone_url} \
219236
-DGITHUB_BRANCH=${branch} \
220237
-DGITHUB_COMMIT=${commit} \
221-
-DSUNSHINE_CONFIGURE_FLATPAK=ON \
238+
-DSUNSHINE_CONFIGURE_FLATPAK_MAN=ON \
222239
-DSUNSHINE_CONFIGURE_ONLY=ON \
223240
..
224241
225242
- name: Build Linux Flatpak
226243
working-directory: build
227244
run: |
228-
sudo su $(whoami) -c 'flatpak run org.flatpak.Builder --repo=repo --force-clean build-sunshine \
229-
dev.lizardbyte.sunshine.yml'
230-
sudo su $(whoami) -c 'flatpak build-bundle ./repo ../artifacts/sunshine.flatpak dev.lizardbyte.sunshine'
245+
sudo su $(whoami) -c 'flatpak run org.flatpak.Builder --arch=${{ matrix.arch }} --repo=repo --force-clean \
246+
--stop-at=cuda build-sunshine dev.lizardbyte.sunshine.yml'
247+
cp -r .flatpak-builder copy-of-flatpak-builder
248+
sudo su $(whoami) -c 'flatpak run org.flatpak.Builder --arch=${{ matrix.arch }} --repo=repo --force-clean \
249+
build-sunshine dev.lizardbyte.sunshine.yml'
250+
rm -rf .flatpak-builder
251+
mv copy-of-flatpak-builder .flatpak-builder
252+
sudo su $(whoami) -c 'flatpak build-bundle --arch=${{ matrix.arch }} ./repo \
253+
../artifacts/sunshine_${{ matrix.arch }}.flatpak dev.lizardbyte.sunshine'
254+
sudo su $(whoami) -c 'flatpak build-bundle --runtime --arch=${{ matrix.arch }} ./repo \
255+
../artifacts/sunshine_debug_${{ matrix.arch }}.flatpak dev.lizardbyte.sunshine.Debug'
231256
232257
- name: Upload Artifacts
233258
uses: actions/upload-artifact@v3
234259
with:
235-
name: sunshine-linux-flatpak
260+
name: sunshine-linux-flatpak-${{ matrix.arch }}
236261
path: artifacts/
237262

238263
- name: Create Release
@@ -253,14 +278,8 @@ jobs:
253278
matrix:
254279
include: # package these differently
255280
- type: cpack
256-
CMAKE_INSTALL_PREFIX: '/usr'
257-
SUNSHINE_ASSETS_DIR: 'local/sunshine/assets'
258-
SUNSHINE_CONFIG_DIR: 'local/sunshine/config'
259281
EXTRA_ARGS: ''
260282
- type: appimage
261-
CMAKE_INSTALL_PREFIX: '/usr'
262-
SUNSHINE_ASSETS_DIR: 'sunshine.AppImage.config'
263-
SUNSHINE_CONFIG_DIR: 'sunshine.AppImage.home'
264283
EXTRA_ARGS: '-DSUNSHINE_CONFIGURE_APPIMAGE=ON'
265284

266285
steps:
@@ -280,7 +299,6 @@ jobs:
280299
build-essential \
281300
cmake \
282301
gcc-10 \
283-
git \
284302
g++-10 \
285303
libavdevice-dev \
286304
libboost-filesystem-dev \
@@ -343,9 +361,8 @@ jobs:
343361
344362
cd build
345363
cmake -DCMAKE_BUILD_TYPE=Release \
346-
-DCMAKE_INSTALL_PREFIX=${{ matrix.CMAKE_INSTALL_PREFIX }} \
347-
-DSUNSHINE_ASSETS_DIR=${{ matrix.SUNSHINE_ASSETS_DIR }} \
348-
-DSUNSHINE_CONFIG_DIR=${{ matrix.SUNSHINE_CONFIG_DIR }} \
364+
-DCMAKE_INSTALL_PREFIX=/usr \
365+
-DSUNSHINE_ASSETS_DIR=share/sunshine \
349366
-DSUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \
350367
-DSUNSHINE_ENABLE_WAYLAND=ON \
351368
-DSUNSHINE_ENABLE_X11=ON \
@@ -380,12 +397,9 @@ jobs:
380397
# install sunshine to the DESTDIR
381398
make install DESTDIR=AppDir
382399
383-
# portable home and config
384-
# todo - this is ugly... we should use a custom AppRun script to take care of this
385-
mv ./AppDir${{ matrix.CMAKE_INSTALL_PREFIX }}/sunshine.AppImage.* ../artifacts/
386-
mkdir -p ../artifacts/${{ matrix.SUNSHINE_CONFIG_DIR }}/.config/sunshine/${{ matrix.SUNSHINE_CONFIG_DIR }}
387-
cp ../artifacts/${{ matrix.SUNSHINE_CONFIG_DIR }}/apps.json \
388-
../artifacts/${{ matrix.SUNSHINE_CONFIG_DIR }}/.config/sunshine/${{ matrix.SUNSHINE_CONFIG_DIR }}/
400+
# custom AppRun file
401+
cp -f ../packaging/linux/AppImage/AppRun ./AppDir/
402+
chmod +x ./AppDir/AppRun
389403
390404
# variables
391405
DESKTOP_FILE="${DESKTOP_FILE:-sunshine.desktop}"
@@ -396,12 +410,6 @@ jobs:
396410
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
397411
chmod +x linuxdeploy-x86_64.AppImage
398412
399-
# # https://github.com/linuxdeploy/linuxdeploy-plugin-gtk
400-
# sudo apt-get install libgtk-3-dev librsvg2-dev -y
401-
# wget https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
402-
# chmod +x linuxdeploy-plugin-gtk.sh
403-
# export DEPLOY_GTK_VERSION=3
404-
405413
./linuxdeploy-x86_64.AppImage \
406414
--appdir ./AppDir \
407415
--executable ./sunshine \
@@ -411,8 +419,6 @@ jobs:
411419
--library /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 \
412420
--library /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 \
413421
--output appimage
414-
# # add this argument back if using gtk plugin
415-
# --plugin gtk \
416422
417423
# move
418424
mv Sunshine*.AppImage ../artifacts/sunshine.AppImage
@@ -430,14 +436,6 @@ jobs:
430436
431437
./appimagelint-x86_64.AppImage ./artifacts/sunshine.AppImage
432438
433-
- name: Archive AppImage
434-
if: ${{ matrix.type == 'appimage' }}
435-
working-directory: artifacts
436-
run: |
437-
chmod +x ./sunshine.AppImage
438-
439-
zip --recurse-paths --move --test ./sunshine-appimage.zip ./*
440-
441439
- name: Upload Artifacts
442440
uses: actions/upload-artifact@v3
443441
with:
@@ -479,7 +477,7 @@ jobs:
479477
cmake -DCMAKE_BUILD_TYPE=Release \
480478
-DCMAKE_INSTALL_PREFIX=/usr \
481479
-DSUNSHINE_ASSETS_DIR=local/sunshine/assets \
482-
-DSUNSHINE_CONFIG_DIR=local/sunshine/config \
480+
-DSUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine \
483481
..
484482
make -j ${nproc}
485483
@@ -619,7 +617,7 @@ jobs:
619617
echo "$subport"
620618
subportlist="$subportlist $subport"
621619
done
622-
echo "::set-output name=subportlist::${subportlist}"
620+
echo "subportlist=${subportlist}" >> $GITHUB_OUTPUT
623621
624622
- name: Run port lint for all subports
625623
run: |
@@ -770,7 +768,6 @@ jobs:
770768
cd build
771769
cmake -DCMAKE_BUILD_TYPE=Release \
772770
-DSUNSHINE_ASSETS_DIR=assets \
773-
-DSUNSHINE_CONFIG_DIR=config \
774771
-G "MinGW Makefiles" \
775772
..
776773
mingw32-make -j2

.github/workflows/automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Autoapproving
22-
uses: hmarr/auto-approve-action@v2
22+
uses: hmarr/auto-approve-action@v3
2323
with:
2424
github-token: "${{ secrets.GITHUB_TOKEN }}"
2525

@@ -44,7 +44,7 @@ jobs:
4444

4545
steps:
4646
- name: Automerging
47-
uses: pascalgn/[email protected].3
47+
uses: pascalgn/[email protected].5
4848
env:
4949
BASE_BRANCHES: nightly
5050
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/cpp-clang-format-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
FOUND=false
2929
fi
3030
31-
echo "::set-output name=src::${FOUND}"
31+
echo "src=${FOUND}" >> $GITHUB_OUTPUT
3232
3333
outputs:
3434
src: ${{ steps.check.outputs.src }}

.github/workflows/issues-stale.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Stale
18-
uses: actions/stale@v5
18+
uses: actions/stale@v6
1919
with:
2020
close-issue-message: >
21-
This issue was closed because it has been stalled for 5 days with no activity.
21+
This issue was closed because it has been stalled for 10 days with no activity.
2222
close-pr-message: >
2323
This PR was closed because it has been stalled for 10 days with no activity.
2424
days-before-stale: 90
@@ -28,15 +28,16 @@ jobs:
2828
exempt-pr-labels: 'dependencies,l10n'
2929
stale-issue-label: 'stale'
3030
stale-issue-message: >
31-
This issue is stale because it has been open for 30 days with no activity.
32-
Comment or remove the stale label, otherwise this will be closed in 5 days.
31+
This issue is stale because it has been open for 90 days with no activity.
32+
Comment or remove the stale label, otherwise this will be closed in 10 days.
3333
stale-pr-label: 'stale'
3434
stale-pr-message: >
3535
This PR is stale because it has been open for 90 days with no activity.
3636
Comment or remove the stale label, otherwise this will be closed in 10 days.
37+
repo-token: ${{ secrets.GH_BOT_TOKEN }}
3738

3839
- name: Invalid Template
39-
uses: actions/stale@v5
40+
uses: actions/stale@v6
4041
with:
4142
close-issue-message: >
4243
This issue was closed because the the template was not completed after 5 days.
@@ -52,3 +53,4 @@ jobs:
5253
stale-pr-label: 'invalid:template-incomplete'
5354
stale-pr-message: >
5455
Invalid PR template.
56+
repo-token: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: Label Actions
2020
uses: dessant/label-actions@v2
2121
with:
22-
github-token: ${{ github.token }}
22+
github-token: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)