-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from l2hyunwoo/feature/add-ios-ci-script
[feature/add-ios-ci-script] Add iOS CI Script
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: iOS Build | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
|
||
jobs: | ||
build-ios: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: zulu | ||
cache: gradle | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: 'latest-stable' | ||
|
||
- uses: hendrikmuhs/ccache-action@v1 | ||
name: Xcode Compile Cache | ||
with: | ||
key: ${{ runner.os }}-v2 # makes a unique key w/related restore key internally | ||
max-size: 1500M | ||
|
||
- name: Run xcodebuild | ||
run: | | ||
cd sample/ios | ||
xcodebuild -scheme peekaboo -sdk iphonesimulator |