Skip to content

Commit a34d40e

Browse files
committed
Switch to GitHub Actions for Steam Link builds
1 parent 68aa049 commit a34d40e

3 files changed

Lines changed: 41 additions & 7 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Steam Link
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ "master" ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: 'recursive'
17+
fetch-depth: 1
18+
19+
- name: Checkout Steam Link SDK
20+
uses: actions/checkout@v4
21+
with:
22+
repository: ValveSoftware/steamlink-sdk
23+
path: steamlink-sdk
24+
fetch-depth: 1
25+
26+
- name: Set CI version
27+
run: |
28+
CI_VERSION=`echo $GITHUB_SHA | cut -c1-6`
29+
echo "CI_VERSION=$CI_VERSION" >> $GITHUB_ENV
30+
31+
- name: Build binaries
32+
run: STEAMLINK_SDK_PATH=$PWD/steamlink-sdk scripts/build-steamlink-app.sh
33+
34+
- name: Upload Binaries
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: Moonlight-SteamLink-${{ env.CI_VERSION }}
38+
path: build/deploy-release/*
39+
if-no-files-found: error

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Moonlight also has mobile versions for [Android](https://github.com/moonlight-st
77
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/).
88

99
[![Windows and macOS CI Builds](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-win-mac.yml/badge.svg?branch=master)](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-win-mac.yml?query=branch%3Amaster)
10+
[![Steam Link CI Builds](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-steamlink.yml/badge.svg?branch=master)](https://github.com/moonlight-stream/moonlight-qt/actions/workflows/build-steamlink.yml?query=branch%3Amaster)
1011
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/glj5cxqwy2w3bglv/branch/master?svg=true)](https://ci.appveyor.com/project/cgutman/moonlight-qt/branch/master)
12+
1113
[![Downloads](https://img.shields.io/github/downloads/moonlight-stream/moonlight-qt/total)](https://github.com/moonlight-stream/moonlight-qt/releases)
1214
[![Translation Status](https://hosted.weblate.org/widgets/moonlight/-/moonlight-qt/svg-badge.svg)](https://hosted.weblate.org/projects/moonlight/moonlight-qt/)
1315

appveyor.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ clone_depth: 1
44

55
environment:
66
matrix:
7-
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1604
8-
BUILD_TARGET: steamlink
97
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2204
108
BUILD_TARGET: linux
119
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
1210

1311
install:
14-
- sh: '[ "$BUILD_TARGET" != steamlink ] || sudo apt install -y libc6:i386 libstdc++6:i386'
15-
- sh: '[ "$BUILD_TARGET" != steamlink ] || git clone --depth=1 https://github.com/ValveSoftware/steamlink-sdk.git $HOME/steamlink-sdk'
1612
- sh: '[ "$BUILD_TARGET" != linux ] || wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -'
1713
- 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'
1814
- sh: '[ "$BUILD_TARGET" != linux ] || sudo apt update || true'
@@ -28,15 +24,12 @@ install:
2824

2925
before_build:
3026
- sh: 'git -c submodule.libs.update=none submodule update --init --recursive'
31-
- sh: '[ "$BUILD_TARGET" = linux ] || git submodule update --init --recursive'
3227
- sh: 'export CI_VERSION=r$APPVEYOR_BUILD_NUMBER'
3328

3429
build_script:
3530
- sh: '[ "$BUILD_TARGET" != linux ] || PATH=$PATH:$HOME/bin scripts/build-appimage.sh'
36-
- sh: '[ "$BUILD_TARGET" != steamlink ] || STEAMLINK_SDK_PATH=$HOME/steamlink-sdk scripts/build-steamlink-app.sh'
3731

3832
after_build:
39-
- sh: '[ "$BUILD_TARGET" != steamlink ] || appveyor PushArtifact build/installer-release/Moonlight-SteamLink-$CI_VERSION.zip'
4033
- sh: '[ "$BUILD_TARGET" != linux ] || appveyor PushArtifact build/installer-release/Moonlight-$CI_VERSION-x86_64.AppImage'
4134

4235
deploy: off

0 commit comments

Comments
 (0)