Switch to GitHub Actions for Steam Link builds
This commit is contained in:
parent
68aa04926e
commit
a34d40e3ee
3 changed files with 41 additions and 7 deletions
39
.github/workflows/build-steamlink.yml
vendored
Normal file
39
.github/workflows/build-steamlink.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Build Steam Link
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Checkout Steam Link SDK
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ValveSoftware/steamlink-sdk
|
||||
path: steamlink-sdk
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set CI version
|
||||
run: |
|
||||
CI_VERSION=`echo $GITHUB_SHA | cut -c1-6`
|
||||
echo "CI_VERSION=$CI_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Build binaries
|
||||
run: STEAMLINK_SDK_PATH=$PWD/steamlink-sdk scripts/build-steamlink-app.sh
|
||||
|
||||
- name: Upload Binaries
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Moonlight-SteamLink-${{ env.CI_VERSION }}
|
||||
path: build/deploy-release/*
|
||||
if-no-files-found: error
|
||||
|
|
@ -7,7 +7,9 @@ Moonlight also has mobile versions for [Android](https://github.com/moonlight-st
|
|||
You can follow development on our [Discord server](https://moonlight-stream.org/discord) and help translate Moonlight into your language on [Weblate](https://hosted.weblate.org/projects/moonlight/moonlight-qt/).
|
||||
|
||||
[](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-win-mac.yml?query=branch%3Amaster)
|
||||
[](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-steamlink.yml?query=branch%3Amaster)
|
||||
[](https://ci.appveyor.com/project/cgutman/moonlight-qt/branch/master)
|
||||
|
||||
[](https://github.com/moonlight-stream/moonlight-qt/releases)
|
||||
[](https://hosted.weblate.org/projects/moonlight/moonlight-qt/)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,15 +4,11 @@ clone_depth: 1
|
|||
|
||||
environment:
|
||||
matrix:
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1604
|
||||
BUILD_TARGET: steamlink
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2204
|
||||
BUILD_TARGET: linux
|
||||
FFMPEG_CONFIGURE_ARGS: --enable-pic --disable-static --enable-shared --disable-all --enable-avcodec --enable-avformat --enable-swscale --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=av1 --enable-hwaccel=h264_vaapi --enable-hwaccel=hevc_vaapi --enable-hwaccel=av1_vaapi --enable-hwaccel=h264_vdpau --enable-hwaccel=hevc_vdpau --enable-hwaccel=av1_vdpau --enable-libdrm --enable-hwaccel=h264_vulkan --enable-hwaccel=hevc_vulkan --enable-hwaccel=av1_vulkan --enable-libdav1d --enable-decoder=libdav1d
|
||||
|
||||
install:
|
||||
- sh: '[ "$BUILD_TARGET" != steamlink ] || sudo apt install -y libc6:i386 libstdc++6:i386'
|
||||
- sh: '[ "$BUILD_TARGET" != steamlink ] || git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk'
|
||||
- sh: '[ "$BUILD_TARGET" != linux ] || wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -'
|
||||
- sh: '[ "$BUILD_TARGET" != linux ] || sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.4.313-jammy.list https://packages.lunarg.com/vulkan/1.4.313/lunarg-vulkan-1.4.313-jammy.list'
|
||||
- sh: '[ "$BUILD_TARGET" != linux ] || sudo apt update || true'
|
||||
|
|
@ -28,15 +24,12 @@ install:
|
|||
|
||||
before_build:
|
||||
- sh: 'git -c submodule.libs.update=none submodule update --init --recursive'
|
||||
- sh: '[ "$BUILD_TARGET" = linux ] || git submodule update --init --recursive'
|
||||
- sh: 'export CI_VERSION=r$APPVEYOR_BUILD_NUMBER'
|
||||
|
||||
build_script:
|
||||
- sh: '[ "$BUILD_TARGET" != linux ] || PATH=$PATH:$HOME/bin scripts/build-appimage.sh'
|
||||
- sh: '[ "$BUILD_TARGET" != steamlink ] || STEAMLINK_SDK_PATH=$HOME/steamlink-sdk scripts/build-steamlink-app.sh'
|
||||
|
||||
after_build:
|
||||
- sh: '[ "$BUILD_TARGET" != steamlink ] || appveyor PushArtifact build/installer-release/Moonlight-SteamLink-$CI_VERSION.zip'
|
||||
- sh: '[ "$BUILD_TARGET" != linux ] || appveyor PushArtifact build/installer-release/Moonlight-$CI_VERSION-x86_64.AppImage'
|
||||
|
||||
deploy: off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue