Add fastlane + github workflow for building example app #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Example Apps | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
build: | |
name: "Build Example App" | |
runs-on: macos-13 | |
strategy: | |
max-parallel: 2 | |
matrix: | |
project: [ | |
{ name: 'Co-Badged Cards', path: 'Co-Badged Cards/SwiftUI/Co-Badged Cards Example.xcodeproj' } | |
] | |
steps: | |
- name: Cancel previous jobs | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Git - Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Select Xcode Version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.0' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- name: Build with fastlane | |
run: | | |
bundle exec fastlane ios build_example_app "scheme:${{ matrix.project.scheme }}" "project_path:${{ matrix.project.path }}" |