From 0637397081682a3acc455406861330cd4e39b1f1 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Wed, 13 Aug 2025 02:20:11 +0530 Subject: [PATCH] Setting up xcode --- .github/actions/setup-xcode/action.yml | 14 ++++++++++++++ .github/workflows/build-ios.yml | 5 +++++ .github/workflows/publish-beta.yml | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 .github/actions/setup-xcode/action.yml diff --git a/.github/actions/setup-xcode/action.yml b/.github/actions/setup-xcode/action.yml new file mode 100644 index 00000000..d5f9eddb --- /dev/null +++ b/.github/actions/setup-xcode/action.yml @@ -0,0 +1,14 @@ +name: Setup xcode +description: 'Set up your GitHub Actions workflow with a specific version of xcode' +inputs: + xcode-version: + description: 'The xcode version to use' + required: false + default: '16.2.0' +runs: + using: "composite" + steps: + - name: Setup xcode + uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd + with: + xcode-version: ${{ inputs.xcode-version }} \ No newline at end of file diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index 95b9a35a..3caa02c6 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -24,9 +24,14 @@ jobs: - name: 💬 Echo package.json version to Github ENV run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV + + - name: 🍎 Setup Xcode + uses: ./.github/actions/setup-xcode - name: 🍎 Run yarn init-ios:new-arch run: yarn init-ios:new-arch + + - name: 🚀 Run fastlane build run: yarn fastlane:ios:build diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index f8cebf0e..30f0ae9b 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -153,6 +153,9 @@ jobs: with: node-version: 20 + - name: 🍎 Setup Xcode + uses: ./.github/actions/setup-xcode + - name: 🍎 Run yarn init-ios:new-arch run: yarn init-ios:new-arch