Skip to content

Commit

Permalink
Add more parameters to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OdNairy committed Jan 25, 2024
1 parent 3e5ba0f commit 9a86a18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
project-path:
required: true
type: string
scheme:
required: true
type: string
default: MapboxMaps
destination:
required: true
type: string
default: generic/platform=iOS Simulator

jobs:
analyze:
Expand Down Expand Up @@ -54,7 +62,7 @@ jobs:

- name: Build Examples
if: matrix.language == 'swift'
run: set -o pipefail && xcodebuild build -project '${{ inputs.project-path }}' -scheme MapboxMaps -destination 'generic/platform=iOS Simulator'| tee xcodebuild.log | xcpretty
run: set -o pipefail && xcodebuild build -project '${{ inputs.project-path }}' -scheme ${{ inputs.scheme }} -destination '${{ inputs.destination }}'| tee xcodebuild.log | xcpretty

- name: Archive xcodebuild.log
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 9a86a18

Please sign in to comment.