From f2398ddad445a9c82bd26d69891187d1e32273d7 Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 02:16:29 +0900 Subject: [PATCH 1/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20github=20actions=20Sw?= =?UTF-8?q?ift=20=EB=B2=84=EC=A0=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 331f0aa..4771403 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -33,6 +33,9 @@ jobs: runs-on: macos-latest steps: + - uses: swift-actions/setup-swift@v1 + - name: Get swift version + run: swift --version # Swift 5.9 - name: Checkout uses: actions/checkout@v3 - name: Set Default Scheme From 05038e102c357e07f46b0133498d62fcbefb8f2e Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 03:12:51 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20actions=20Xcode=20?= =?UTF-8?q?=EB=B2=84=EC=A0=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 4771403..2c53659 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -30,12 +30,12 @@ on: jobs: build: name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-latest + runs-on: macos-13 steps: - - uses: swift-actions/setup-swift@v1 - - name: Get swift version - run: swift --version # Swift 5.9 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.0.1' - name: Checkout uses: actions/checkout@v3 - name: Set Default Scheme From cf4941e27b44f54883b1501c101c46d7ca07c35c Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 03:22:12 +0900 Subject: [PATCH 3/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20ios=20github=20action?= =?UTF-8?q?s=20running=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 2c53659..2e1583e 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -31,6 +31,9 @@ jobs: build: name: Build and Test default scheme using any available iPhone simulator runs-on: macos-13 + defaults: + run: + working-directory: ./iOS/Layover steps: - uses: maxim-lobanov/setup-xcode@v1 @@ -40,7 +43,6 @@ jobs: uses: actions/checkout@v3 - name: Set Default Scheme run: | - cd iOS/Layover scheme_list=$(xcodebuild -list -json | tr -d "\n") default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") echo $default | cat >default From c9f2ed994346576b3db4c33a9084942c23406ba0 Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 03:29:54 +0900 Subject: [PATCH 4/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20github=20actions=20sk?= =?UTF-8?q?ip=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 2e1583e..1d257e8 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -57,7 +57,7 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device -skipPackagePluginValidation" - name: Test env: scheme: ${{ 'default' }} @@ -68,4 +68,4 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device -skipPackagePluginValidation" From fbbdc38b1d8462094eba8719a03ff29571817adb Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 03:46:42 +0900 Subject: [PATCH 5/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20yml=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 1d257e8..6ba14c7 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -57,7 +57,7 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device -skipPackagePluginValidation" + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation - name: Test env: scheme: ${{ 'default' }} @@ -68,4 +68,4 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device -skipPackagePluginValidation" + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation From f824b4d32e106de1c34e98bb7d4cdde153e43c58 Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 03:54:21 +0900 Subject: [PATCH 6/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20Swiftlint=20SkipMacro?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index 6ba14c7..cf9501a 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -57,7 +57,7 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation -skipMacroValidation - name: Test env: scheme: ${{ 'default' }} @@ -68,4 +68,4 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -skipPackagePluginValidation -skipMacroValidation From c1d1bf037d9fc3696e78750e6dab607049fa7d44 Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 10:41:44 +0900 Subject: [PATCH 7/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20actions=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index cf9501a..f946281 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -30,7 +30,7 @@ on: jobs: build: name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-13 + runs-on: macos-13-arm64 defaults: run: working-directory: ./iOS/Layover From 45851199a52caa03a731a2c87207211d96c1cfbb Mon Sep 17 00:00:00 2001 From: Inhwan Kim Date: Wed, 15 Nov 2023 10:52:53 +0900 Subject: [PATCH 8/8] =?UTF-8?q?=F0=9F=92=9A=20Fix:=20actions=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ios-pr-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-pr-test.yml b/.github/workflows/ios-pr-test.yml index f946281..d0f0d57 100644 --- a/.github/workflows/ios-pr-test.yml +++ b/.github/workflows/ios-pr-test.yml @@ -30,7 +30,7 @@ on: jobs: build: name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-13-arm64 + runs-on: macos-13-xlarge defaults: run: working-directory: ./iOS/Layover