109 lines
2.5 KiB
YAML
109 lines
2.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
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@v6
|
|
with:
|
|
submodules: 'recursive'
|
|
fetch-depth: 1
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- 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@v6
|
|
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
|