diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4c75fde --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + pull_request: + branches: + - master + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + build: + name: Build (${{ matrix.platform }}) + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + include: + - scheme: Moonlight + sdk: iphonesimulator + platform: iOS + - scheme: Moonlight TV + sdk: appletvsimulator + platform: tvOS + + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + submodules: recursive + + - name: Download ${{ matrix.platform }} platform + run: xcodebuild -downloadPlatform ${{ matrix.platform }} + + - name: Build Debug + run: xcodebuild -project Moonlight.xcodeproj -scheme "${{ matrix.scheme }}" -configuration Debug -sdk ${{ matrix.sdk }} clean build + + - name: Build Release + run: xcodebuild -project Moonlight.xcodeproj -scheme "${{ matrix.scheme }}" -configuration Release -sdk ${{ matrix.sdk }} clean build diff --git a/README.md b/README.md index 6580a88..4b2cf99 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Moonlight iOS/tvOS -[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/kwv8vpwr457lqn25/branch/master?svg=true)](https://ci.appveyor.com/project/cgutman/moonlight-ios/branch/master) +[![CI](https://github.com/moonlight-stream/moonlight-ios/actions/workflows/ci.yml/badge.svg)](https://github.com/moonlight-stream/moonlight-ios/actions/workflows/ci.yml) [Moonlight for iOS/tvOS](https://moonlight-stream.org) is an open source client for [Sunshine](https://github.com/LizardByte/Sunshine) and NVIDIA GameStream. Moonlight for iOS/tvOS allows you to stream your full collection of games and apps from your powerful desktop computer to your iOS device or Apple TV. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 91cab2d..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,24 +0,0 @@ -version: 0.0.0.{build} - -clone_depth: 1 - -environment: - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: macOS-Sonoma - SCHEME: Moonlight - SDK: iphonesimulator - PLATFORM: iOS - - APPVEYOR_BUILD_WORKER_IMAGE: macOS-Sonoma - SCHEME: Moonlight TV - SDK: appletvsimulator - PLATFORM: tvOS - -before_build: - - 'git submodule update --init --recursive' - - sh: 'xcodebuild -downloadPlatform $PLATFORM' - -build_script: - - sh: xcodebuild -project Moonlight.xcodeproj -scheme "$SCHEME" -configuration Debug -sdk $SDK clean build - - sh: xcodebuild -project Moonlight.xcodeproj -scheme "$SCHEME" -configuration Release -sdk $SDK clean build - -deploy: off