Skip to content

Commit

Permalink
Merge pull request #26 from l2hyunwoo/feature/add-ios-ci-script
Browse files Browse the repository at this point in the history
[feature/add-ios-ci-script] Add iOS CI Script
  • Loading branch information
onseok authored Dec 19, 2023
2 parents 46f183e + ca73df1 commit 0b296b9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/iosBuild.yml
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

0 comments on commit 0b296b9

Please sign in to comment.