From 47e5a829636f6bad56f3d24d379f82f3308e2aad Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Mon, 18 Dec 2023 15:56:08 +0900 Subject: [PATCH 1/5] [feature/add-feature/add-ios-ci-script] Add iOS CI Script --- .github/workflows/iosBuild.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/iosBuild.yml diff --git a/.github/workflows/iosBuild.yml b/.github/workflows/iosBuild.yml new file mode 100644 index 0000000..10279cc --- /dev/null +++ b/.github/workflows/iosBuild.yml @@ -0,0 +1,38 @@ +name: iOS Build + +on: + push: + branches: [ "main" ] + pull_request: + +jobs: + build-ios: + runs-on: macos-13 + steps: + - uses: actions/checkout@4 + + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: zulu + cache: gradle + + - name: Set up Ruby + uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 + with: + bundler-cache: true + + - 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 From a65d10e7b5c3a1d999b1c0e699d35982c50bf976 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Mon, 18 Dec 2023 15:57:16 +0900 Subject: [PATCH 2/5] [feature/add-feature/add-ios-ci-script] Fix version for checkout action --- .github/workflows/iosBuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/iosBuild.yml b/.github/workflows/iosBuild.yml index 10279cc..f83f0eb 100644 --- a/.github/workflows/iosBuild.yml +++ b/.github/workflows/iosBuild.yml @@ -9,7 +9,7 @@ jobs: build-ios: runs-on: macos-13 steps: - - uses: actions/checkout@4 + - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: From 1a938974a795d78ab5da3b3f9c58dd8fbf008ee4 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Mon, 18 Dec 2023 16:01:35 +0900 Subject: [PATCH 3/5] [feature/add-feature/add-ios-ci-script] Delete ruby version --- .github/workflows/iosBuild.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/iosBuild.yml b/.github/workflows/iosBuild.yml index f83f0eb..cebee16 100644 --- a/.github/workflows/iosBuild.yml +++ b/.github/workflows/iosBuild.yml @@ -17,11 +17,6 @@ jobs: distribution: zulu cache: gradle - - name: Set up Ruby - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0 - with: - bundler-cache: true - - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: 'latest-stable' From baf6dc674fbc6714f3846b5e5d3cc9e6d3a9a674 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Mon, 18 Dec 2023 16:05:12 +0900 Subject: [PATCH 4/5] [feature/add-feature/add-ios-ci-script] fix error typo --- .github/workflows/iosBuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/iosBuild.yml b/.github/workflows/iosBuild.yml index cebee16..3303b0b 100644 --- a/.github/workflows/iosBuild.yml +++ b/.github/workflows/iosBuild.yml @@ -30,4 +30,4 @@ jobs: - name: Run xcodebuild run: | cd sample/ios - xcodebuild -scheme peekaboo -sdk iphoneSimulator + xcodebuild -scheme peekaboo -sdk iphonesimulator From ca73df12ed7e5ad5db2f96f781fe8c34b4556a82 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Mon, 18 Dec 2023 16:22:26 +0900 Subject: [PATCH 5/5] [feature/add-feature/add-ios-ci-script] Add gradle cache --- .github/workflows/iosBuild.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/iosBuild.yml b/.github/workflows/iosBuild.yml index 3303b0b..ebb8176 100644 --- a/.github/workflows/iosBuild.yml +++ b/.github/workflows/iosBuild.yml @@ -17,6 +17,16 @@ jobs: 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'