change linux build matrix (#468)
This commit is contained in:
+54
-31
@@ -353,7 +353,7 @@ jobs:
|
|||||||
|
|
||||||
build_linux:
|
build_linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-${{ matrix.dist }}
|
||||||
needs: [check_changelog, setup_release]
|
needs: [check_changelog, setup_release]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # false to test all, true to fail entire job if any fail
|
fail-fast: false # false to test all, true to fail entire job if any fail
|
||||||
@@ -361,8 +361,13 @@ jobs:
|
|||||||
include: # package these differently
|
include: # package these differently
|
||||||
- type: cpack
|
- type: cpack
|
||||||
EXTRA_ARGS: ''
|
EXTRA_ARGS: ''
|
||||||
|
dist: 20.04
|
||||||
|
- type: cpack
|
||||||
|
EXTRA_ARGS: ''
|
||||||
|
dist: 22.04
|
||||||
- type: appimage
|
- type: appimage
|
||||||
EXTRA_ARGS: '-DSUNSHINE_CONFIGURE_APPIMAGE=ON'
|
EXTRA_ARGS: '-DSUNSHINE_CONFIGURE_APPIMAGE=ON'
|
||||||
|
dist: 20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -374,16 +379,47 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -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 \
|
sudo apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
cmake \
|
|
||||||
gcc-10 \
|
gcc-10 \
|
||||||
g++-10 \
|
g++-10 \
|
||||||
libavdevice-dev \
|
libavdevice-dev \
|
||||||
libboost-filesystem-dev \
|
|
||||||
libboost-log-dev \
|
|
||||||
libboost-thread-dev \
|
|
||||||
libcap-dev \
|
libcap-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libdrm-dev \
|
libdrm-dev \
|
||||||
@@ -403,24 +439,19 @@ jobs:
|
|||||||
libxrandr-dev \
|
libxrandr-dev \
|
||||||
libxtst-dev \
|
libxtst-dev \
|
||||||
wget
|
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
|
# clean apt cache
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
sudo rm -rf /var/lib/apt/lists/*
|
sudo rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Update gcc alias
|
# Update gcc alias
|
||||||
|
# https://stackoverflow.com/a/70653945/11214013
|
||||||
sudo update-alternatives --install \
|
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
|
# Install CuDA
|
||||||
sudo wget \
|
sudo wget \
|
||||||
@@ -430,14 +461,6 @@ jobs:
|
|||||||
sudo /root/cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm
|
sudo /root/cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm
|
||||||
sudo rm /root/cuda.run
|
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
|
- name: Build Linux
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -464,13 +487,13 @@ jobs:
|
|||||||
if: ${{ matrix.type == 'cpack' }}
|
if: ${{ matrix.type == 'cpack' }}
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: |
|
run: |
|
||||||
# package
|
|
||||||
cpack -G DEB
|
cpack -G DEB
|
||||||
cpack -G RPM
|
mv ./cpack_artifacts/Sunshine.deb ../artifacts/sunshine-${{ matrix.dist }}.deb
|
||||||
|
|
||||||
# move
|
if [[ ${{ matrix.dist }} == "20.04" ]]; then
|
||||||
mv ./cpack_artifacts/Sunshine.deb ../artifacts/sunshine.deb
|
cpack -G RPM
|
||||||
mv ./cpack_artifacts/Sunshine.rpm ../artifacts/sunshine.rpm
|
mv ./cpack_artifacts/Sunshine.rpm ../artifacts/sunshine.rpm
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set AppImage Version
|
- 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
|
if: ${{ matrix.type == 'appimage' && ( needs.check_changelog.outputs.next_version_bare != needs.check_changelog.outputs.last_version ) }} # yamllint disable-line rule:line-length
|
||||||
@@ -527,7 +550,7 @@ jobs:
|
|||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sunshine-linux-${{ matrix.type }}
|
name: sunshine-linux-${{ matrix.type }}-${{ matrix.dist }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
- name: Create/Update GitHub Release
|
- name: Create/Update GitHub Release
|
||||||
|
|||||||
@@ -40,15 +40,15 @@ According to AppImageLint the supported distro matrix of the AppImage is below.
|
|||||||
- [✔] Debian stable (bullseye)
|
- [✔] Debian stable (bullseye)
|
||||||
- [✔] Debian testing (bookworm)
|
- [✔] Debian testing (bookworm)
|
||||||
- [✔] Debian unstable (sid)
|
- [✔] Debian unstable (sid)
|
||||||
|
- [✔] Ubuntu kinetic
|
||||||
- [✔] Ubuntu jammy
|
- [✔] Ubuntu jammy
|
||||||
- [✔] Ubuntu impish
|
|
||||||
- [✔] Ubuntu focal
|
- [✔] Ubuntu focal
|
||||||
- [✖] Ubuntu bionic
|
- [✖] Ubuntu bionic
|
||||||
- [✖] Ubuntu xenial
|
- [✖] Ubuntu xenial
|
||||||
- [✖] Ubuntu trusty
|
- [✖] Ubuntu trusty
|
||||||
- [✖] CentOS 7
|
- [✖] CentOS 7
|
||||||
|
|
||||||
#. Download ``sunshine-appimage.zip`` and extract the contents to your home directory.
|
#. Download ``sunshine.AppImage`` to your home directory.
|
||||||
#. Open terminal and run the following code.
|
#. Open terminal and run the following code.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
@@ -85,11 +85,14 @@ Debian Package
|
|||||||
.. image:: https://img.shields.io/github/issues/lizardbyte/sunshine/pkg:deb?logo=github&style=for-the-badge
|
.. image:: https://img.shields.io/github/issues/lizardbyte/sunshine/pkg:deb?logo=github&style=for-the-badge
|
||||||
:alt: GitHub issues by-label
|
:alt: GitHub issues by-label
|
||||||
|
|
||||||
#. Download ``sunshine.deb`` and run the following code.
|
#. Download ``sunshine-{ubuntu-version}.deb`` and run the following code.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo apt install -f ./sunshine.deb
|
sudo apt install -f ./sunshine-{ubuntu-version}.deb
|
||||||
|
|
||||||
|
.. Note:: The ``{ubuntu-version}`` is the version of ubuntu we built the package on. If you are not using Ubuntu and
|
||||||
|
have an issue with one package, you can try another.
|
||||||
|
|
||||||
.. Tip:: You can double click the deb file to see details about the package and begin installation.
|
.. Tip:: You can double click the deb file to see details about the package and begin installation.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user