diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..589863f --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9748e76..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: 0.0.0.{build} - -clone_depth: 1 - -environment: - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 - PACKAGES: libssl-dev libopus-dev libasound2-dev libudev-dev libavahi-client-dev libcurl4-openssl-dev libevdev-dev libexpat1-dev libpulse-dev uuid-dev cmake gcc g++ libavcodec-dev libavutil-dev libsdl2-dev libva-dev libvdpau-dev libcec-dev libp8-platform-dev - BUILD_TARGET: ubuntu - - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 - PACKAGES: qemu binfmt-support qemu-user-static - BUILD_TARGET: raspbian - -install: - - 'sudo apt update || true' - - 'sudo apt install -y $PACKAGES' - - '[ "$BUILD_TARGET" != raspbian ] || docker run --rm --privileged multiarch/qemu-user-static --reset -p yes' - -before_build: - - 'git submodule update --init --recursive' - -build_script: - - 'if [[ "$BUILD_TARGET" = ubuntu ]]; then mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/tmp .. && make -j$(nproc) && make install; fi' - - 'if [[ "$BUILD_TARGET" = raspbian ]]; then git clone --recursive https://github.com/cgutman/moonlight-embedded-packaging.git && cd moonlight-embedded-packaging && sh -c "./build-rpi-buster.sh $APPVEYOR_REPO_COMMIT"; fi' - -after_build: - - sh: '[ "$BUILD_TARGET" != raspbian ] || appveyor PushArtifact out_*/moonlight-embedded_*.deb' - - sh: '[ "$BUILD_TARGET" != raspbian ] || appveyor PushArtifact out_*/moonlight-embedded-dbgsym_*.deb' - -deploy: off