Migrate to GitHub Actions

This commit is contained in:
Cameron Gutman
2025-11-29 13:35:31 -06:00
parent cba6c8fb18
commit 5f5883119d
2 changed files with 59 additions and 30 deletions

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

@@ -0,0 +1,59 @@
name: Build
on:
push:
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04-arm
distro: bullseye
target: rpi
- os: ubuntu-24.04-arm
distro: bookworm
target: rpi
- os: ubuntu-24.04-arm
distro: trixie
target: rpi
- os: ubuntu-24.04-arm
distro: bullseye
target: rpi64
- 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:
repository: cgutman/moonlight-embedded-packaging
ref: master
- name: Build Package
env:
REPO_NAME: ${{ github.event.pull_request.head.repo.clone_url || github.event.repository.clone_url }}
run: ./build-single.sh ${{ matrix.target }} ${{ matrix.distro }} ${{ github.event.pull_request.head.sha || github.sha }}
- 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