Switch to GitHub Actions for CI
This commit is contained in:
101
.github/workflows/build.yml
vendored
Normal file
101
.github/workflows/build.yml
vendored
Normal 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
|
||||||
28
appveyor.yml
28
appveyor.yml
@@ -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
|
|
||||||
Reference in New Issue
Block a user