Skip to content

Commit

Permalink
fixup! Build sample app as part of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahadir Oncel committed Oct 14, 2020
1 parent f2b0892 commit 5e88f6b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,28 @@ jobs:
run: bundle install
- name: Build v3 Sample
run: bundle exec fastlane build_sample_v3

build-sample-v3-ios12:
name: Build v3 Sample (iOS12.4)
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Cache RubyGems
uses: actions/cache@v2
id: rubygem-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gem-
- name: Install RubyGems
if: steps.rubygem-cache.outputs.cache-hit != 'true'
run: bundle install
- name: Prepare iOS 12 simulator
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
xcrun simctl list runtimes
xcrun simctl create custom-test-device "iPhone 7" "com.apple.CoreSimulator.SimRuntime.iOS-12-4"
xcrun simctl list devices 12.4
- name: Build v3 Sample
run: bundle exec fastlane build_sample_v3 device:"iPhone 7 (12.4)"
5 changes: 3 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,12 @@ lane :stress_test_v3_release do
end

desc "Builds v3 Sample app"
lane :build_sample_v3 do
lane :build_sample_v3 do |options|
scan(
project: "StreamChat_v3.xcodeproj",
scheme: "Sample",
clean: true,
build_for_testing: true
build_for_testing: true,
devices: options[:device],
)
end

0 comments on commit 5e88f6b

Please sign in to comment.