Skip to content

Commit

Permalink
Merge pull request #738 from LizardByte/nightly
Browse files Browse the repository at this point in the history
v0.18.0
  • Loading branch information
ReenigneArcher authored Jan 30, 2023
2 parents b2fe042 + 98d61b1 commit b2c5da2
Show file tree
Hide file tree
Showing 78 changed files with 3,897 additions and 738 deletions.
1 change: 0 additions & 1 deletion .docker_platforms

This file was deleted.

4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

# ignore repo directories and files
docs/
packaging/
scripts/
tools/
crowdin.yml

# ignore dev directories
build/
venv/

# ignore artifacts
artifacts/
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,38 @@ updates:
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "08:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "09:00"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "09:30"
target-branch: "nightly"
open-pull-requests-limit: 10

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
time: "10:00"
target-branch: "nightly"
open-pull-requests-limit: 10
36 changes: 16 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ jobs:
cmake
- name: Configure PKGBUILD files
id: prepare
run: |
# variables for manifest
echo "aur_publish=false" >> $GITHUB_ENV
aur_publish=false
aur_pkg=sunshine-dev
sub_version=""
conflicts="'sunshine'"
Expand All @@ -174,22 +175,20 @@ jobs:
branch=${GITHUB_HEAD_REF}
# check the branch variable
if [ -z "$branch" ]
then
if [ -z "$branch" ]; then
echo "This is a PUSH event"
commit=${{ github.sha }}
clone_url=${{ github.event.repository.clone_url }}
if [[ ${{ github.ref == 'refs/heads/master' }} ]]; then
if [[ ${{ github.ref == 'refs/heads/master' }} == true ]]; then
echo "This is a main release event"
aur_publish=true
aur_pkg=sunshine
conflicts=""
provides=""
echo "aur_publish=true" >> $GITHUB_ENV
elif [[ ${{ github.ref == 'refs/heads/nightly' }} ]]; then
elif [[ ${{ github.ref == 'refs/heads/nightly' }} == true ]]; then
echo "This is a nightly release event"
sub_version=".r${commit}"
echo "aur_publish=false" >> $GITHUB_ENV
fi
else
echo "This is a PR event"
Expand All @@ -201,7 +200,8 @@ jobs:
echo "Commit: ${commit}"
echo "Clone URL: ${clone_url}"
echo "aur_pkg=${aur_pkg}" >> $GITHUB_ENV
echo "aur_publish=${aur_publish}" >> $GITHUB_OUTPUT
echo "aur_pkg=${aur_pkg}" >> $GITHUB_OUTPUT
mkdir -p artifacts
mkdir -p build
Expand Down Expand Up @@ -237,10 +237,10 @@ jobs:
path: artifacts/

- name: Publish AUR package
if: ${{ env.aur_publish == 'true' }}
if: ${{ steps.prepare.outputs.aur_publish == 'true' }}
uses: KSXGitHub/[email protected]
with:
pkgname: ${{ env.aur_pkg }}
pkgname: ${{ steps.prepare.outputs.aur_pkg }}
pkgbuild: ./artifacts/PKGBUILD
assets: |
./artifacts/*
Expand Down Expand Up @@ -363,12 +363,6 @@ jobs:
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
Expand Down Expand Up @@ -430,6 +424,7 @@ jobs:
libcurl4-openssl-dev \
libdrm-dev \
libevdev-dev \
libmfx-dev \
libnuma-dev \
libopus-dev \
libpulse-dev \
Expand Down Expand Up @@ -459,9 +454,9 @@ jobs:
--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
# Install CUDA
sudo wget \
https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux.run \
https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run \
--progress=bar:force:noscroll -q --show-progress -O /root/cuda.run
sudo chmod a+x /root/cuda.run
sudo /root/cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm
Expand Down Expand Up @@ -886,6 +881,7 @@ jobs:
mingw-w64-x86_64-boost
mingw-w64-x86_64-cmake
mingw-w64-x86_64-curl
mingw-w64-x86_64-libmfx
mingw-w64-x86_64-nsis
mingw-w64-x86_64-openssl
mingw-w64-x86_64-opus
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# It uses an action that auto-updates pull requests branches, when changes are pushed to their destination branch.
# Auto-updating to the latest destination branch works only in the context of upstream repo and not forks.
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs.
# Dependabot PRs are updated by an action that comments `@depdenabot rebase` on dependabot PRs. (disabled)

name: autoupdate

Expand All @@ -34,13 +34,18 @@ jobs:
PR_READY_STATE: "all"
MERGE_CONFLICT_ACTION: "fail"

dependabot-rebase:
name: Dependabot Rebase
if: >-
startsWith(github.repository, 'LizardByte/')
runs-on: ubuntu-latest
steps:
- name: rebase
uses: "bbeesley/[email protected]"
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
# Disabled due to:
# - no major version tag, resulting in constant nagging to update this action
# - additionally, the code is sketchy, 16k+ lines of code?
# https://github.com/bbeesley/gha-auto-dependabot-rebase/blob/main/dist/main.cjs
#
# dependabot-rebase:
# name: Dependabot Rebase
# if: >-
# startsWith(github.repository, 'LizardByte/')
# runs-on: ubuntu-latest
# steps:
# - name: rebase
# uses: "bbeesley/[email protected]"
# env:
# GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
Loading

0 comments on commit b2c5da2

Please sign in to comment.