Skip to content

Commit

Permalink
[ci] build example project (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Mar 19, 2021
1 parent 6beea6e commit 04ec511
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
PROJECT: Foil.xcodeproj
SCHEME: Foil

EXAMPLE_PROJECT: Example/ExampleApp.xcodeproj
EXAMPLE_SCHEME: ExampleApp

IOS_DEST: "OS=14.4,name=iPhone 12 Mini"
TVOS_DEST: "OS=14.3,name=Apple TV"
WATCHOS_DEST: "OS=7.2,name=Apple Watch Series 6 - 44mm"
Expand Down Expand Up @@ -105,3 +108,20 @@ jobs:
-sdk "$MACOS_SDK" \
-destination "$MACOS_DEST" \
ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c
build-example:
name: build example project
runs-on: macOS-latest
steps:
- name: git checkout
uses: actions/checkout@v2

- name: build
run: |
set -o pipefail
xcodebuild clean build \
-project "$EXAMPLE_PROJECT" \
-scheme "$EXAMPLE_SCHEME" \
-sdk "$IOS_SDK" \
-destination "$IOS_DEST" \
ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: install jazzy
run: gem install jazzy --no-document

- name: generate docs
run: ./scripts/build_docs.zsh

Expand Down

0 comments on commit 04ec511

Please sign in to comment.