Update and rename fastlane-build.yml to ci.yml

This commit is contained in:
aiden vigue 2021-06-09 22:13:01 -07:00 committed by GitHub
parent 988377e0ea
commit 72f1e5ef44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 28 deletions

40
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: fastlane build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build schemes
strategy:
matrix:
os:
- macos-11
platform:
- tvOS
- iOS
xcode:
- ^12
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install VLCKit
run: "carthage update"
- use: mxcl/xcodebuild@v1
with:
xcode: ${{ matrix.xcode }}
platform: ${{ matrix.platform }}
action: build # default = `test`
code-coverage: true # default = `false`
warnings-as-errors: true # default = `false`
configuration: release # no default, ie. `xcodebuild` decides itself

View File

@ -1,28 +0,0 @@
name: fastlane build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Carthage
run: "carthage update"
- uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: JellyfinPlayer.xcodeproj
scheme: JellyfinPlayer
destination: platform=iOS
action: build