Switch to GitHub Actions for CI

This commit is contained in:
Cameron Gutman
2025-11-01 13:06:09 -05:00
parent a56b432ab6
commit 5bf3bfd7f2
2 changed files with 101 additions and 28 deletions

101
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,101 @@
name: Build
on:
push:
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
distro: trixie
target: amd64
- os: ubuntu-24.04
distro: trixie
target: riscv64
- os: ubuntu-24.04-arm
distro: bookworm
target: aarch64
- os: ubuntu-24.04-arm
distro: jammy
target: aarch64
- os: ubuntu-24.04-arm
distro: noble
target: aarch64
- os: ubuntu-24.04-arm
distro: trixie
target: aarch64
- os: ubuntu-24.04-arm
distro: bookworm
target: armhf
- os: ubuntu-24.04-arm
distro: jammy
target: armhf
- os: ubuntu-24.04-arm
distro: noble
target: armhf
- os: ubuntu-24.04-arm
distro: trixie
target: armhf
- os: ubuntu-24.04-arm
distro: jammy
target: l4t
- os: ubuntu-24.04-arm
distro: noble
target: l4t
- os: ubuntu-24.04-arm
distro: bookworm
target: rpi
- os: ubuntu-24.04-arm
distro: trixie
target: rpi
- os: ubuntu-24.04-arm
distro: bookworm
target: rpi64
- os: ubuntu-24.04-arm
distro: trixie
target: rpi64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
submodules: 'recursive'
fetch-depth: 1
- name: Setup Emulation
if: matrix.os == 'ubuntu-24.04'
run: docker run --privileged --rm tonistiigi/binfmt --install all
- name: Build Package
run: ./build-single.sh ${{ matrix.target }} ${{ matrix.distro }}
- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: Moonlight-${{ matrix.distro }}-${{ matrix.target }}
path: |
out_${{ matrix.target }}-${{ matrix.distro }}/*.deb
out_${{ matrix.target }}-${{ matrix.distro }}/*.ddeb
if-no-files-found: error

View File

@@ -1,28 +0,0 @@
version: 0.0.0.{build}
clone_depth: 1
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
BUILD_SCRIPT: ./build-single.sh amd64 trixie
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
BUILD_SCRIPT: ./build-single.sh rpi bookworm
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
BUILD_SCRIPT: ./build-single.sh rpi64 bookworm
install:
- sh: 'sudo apt update || true'
- sh: 'docker run --privileged --rm tonistiigi/binfmt --install all'
before_build:
- sh: 'git submodule update --init --recursive'
build_script:
- sh: 'sh -c $BUILD_SCRIPT'
after_build:
- sh: 'appveyor PushArtifact out_*/moonlight-qt_*.deb'
- sh: 'appveyor PushArtifact out_*/moonlight-qt-dbgsym_*.deb || appveyor PushArtifact out_*/moonlight-qt-dbgsym_*.ddeb'
deploy: off