From 6bc45595b30966b870984f78d89c3b295dd8958b Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:00:34 +0200 Subject: [PATCH 1/9] Create ios.yml --- .github/workflows/ios.yml | 82 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/ios.yml diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml new file mode 100644 index 00000000..10d7185b --- /dev/null +++ b/.github/workflows/ios.yml @@ -0,0 +1,82 @@ +name: CI + +on: + push: + branches: + - main + - dev + +env: + NODE_VERSION: 16 + +jobs: + build: + name: Build web assets + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies + run: npm i; cd NUXT; npm i + - name: Set App Version + working-directory: NUXT + run: sed -i 's/dev-local/${{ github.sha }}/' nuxt.config.js + - name: Build web assets + working-directory: NUXT + run: npm run generate + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist + ios: + name: Build iOS platform + runs-on: macos-latest + needs: [build] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: dist + path: dist + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies + run: npm i + - name: Copy web assets to native platform + run: npx cap copy ios + - name: Update native platform + run: npx cap update ios + - name: Add empty `GoogleService-Info.plist` + run: echo "$GOOGLE_SERVICE_INFO_PLIST" > ios/App/App/GoogleService-Info.plist + env: + GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}} + - name: Build and archive with xcodebuild + working-directory: ios + run: xcodebuild + -workspace App/App.xcworkspace + -scheme App + -sdk iphoneos + -archivePath App/build/App.xarchive + -destination 'generic/platform:iphonesimulator' + clean build archive + CODE_SIGN_IDENTITY="" + CODE_SIGNING_REQUIRED=NO + CODE_SIGNING_ALLOWED="NO" + CODE_SIGN_ENTITLEMENTS="" + - name: Make IPA + run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-iphoneos/App.app/ Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: iOS + path: VueTube.ipa From c09efcd56e5505f6972ccab59905861379db1ab2 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:10:44 +0200 Subject: [PATCH 2/9] Update ios.yml --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 10d7185b..6e13a5ed 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -66,7 +66,7 @@ jobs: -scheme App -sdk iphoneos -archivePath App/build/App.xarchive - -destination 'generic/platform:iphonesimulator' + -destination 'generic/platform=iOS' clean build archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO From 904423991290eff64cbffa43761f5f7ff56024fe Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:25:49 +0200 Subject: [PATCH 3/9] Update ios.yml --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 6e13a5ed..bbedd150 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -64,7 +64,7 @@ jobs: run: xcodebuild -workspace App/App.xcworkspace -scheme App - -sdk iphoneos + -sdk iphonesimulator -archivePath App/build/App.xarchive -destination 'generic/platform=iOS' clean build archive From 2fa9fe3bd7c6477f571bc04b1241028ebc369002 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:40:37 +0200 Subject: [PATCH 4/9] Update ios.yml --- .github/workflows/ios.yml | 55 +++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index bbedd150..7388fdfe 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -7,7 +7,7 @@ on: - dev env: - NODE_VERSION: 16 + NODE_VERSION: 19 jobs: build: @@ -38,8 +38,12 @@ jobs: runs-on: macos-latest needs: [build] steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout source + uses: actions/checkout@v3 + - name: Set up XCode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 14.3.1 - name: Download artifacts uses: actions/download-artifact@v2 with: @@ -49,32 +53,31 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} - - name: Install dependencies - run: npm i - - name: Copy web assets to native platform - run: npx cap copy ios - - name: Update native platform - run: npx cap update ios - - name: Add empty `GoogleService-Info.plist` + + - name: Install app dependencies + run: npm install + + - name: Build project app + run: npm run build + + - name: Capacitor update + run: npx cap update + + - name: Capacitor copy + run: npx cap copy + + - name: Add `GoogleService-Info.plist` run: echo "$GOOGLE_SERVICE_INFO_PLIST" > ios/App/App/GoogleService-Info.plist env: GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}} - - name: Build and archive with xcodebuild - working-directory: ios - run: xcodebuild - -workspace App/App.xcworkspace - -scheme App - -sdk iphonesimulator - -archivePath App/build/App.xarchive - -destination 'generic/platform=iOS' - clean build archive - CODE_SIGN_IDENTITY="" - CODE_SIGNING_REQUIRED=NO - CODE_SIGNING_ALLOWED="NO" - CODE_SIGN_ENTITLEMENTS="" - - name: Make IPA - run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-iphoneos/App.app/ Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa - + + - name: Build project + run: xcodebuild -workspace './ios/App/App/App.xcworkspace' -scheme App -destination generic/platform=iOS -archivePath App.xcarchive archive + + - name: 🍻 Assemble IPA + run: xcodebuild archive -archivePath App.xcarchive -exportArchive -exportOptionsPlist ./GoogleService-Info.plist -exportPath output -allowProvisioningUpdates + + - name: Upload artifacts uses: actions/upload-artifact@v2 with: From 5e590dcecd03ec61d7adfae4ef9b267cfacf4166 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:43:04 +0200 Subject: [PATCH 5/9] Update ios.yml --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 7388fdfe..0f11c8e9 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -43,7 +43,7 @@ jobs: - name: Set up XCode uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: 14.3.1 + xcode-version: 14.2.0 - name: Download artifacts uses: actions/download-artifact@v2 with: From e668de2bc45a46aea2006e3fe128db2de127a3da Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:53:32 +0200 Subject: [PATCH 6/9] Update ios.yml --- .github/workflows/ios.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 0f11c8e9..417a94ce 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -57,9 +57,6 @@ jobs: - name: Install app dependencies run: npm install - - name: Build project app - run: npm run build - - name: Capacitor update run: npx cap update From dd7b5e522b1a2ff2fa583e04806fed96e7859241 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:54:04 +0200 Subject: [PATCH 7/9] Update ci.yml --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bc4b6df..462598c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,6 +89,10 @@ jobs: run: npx cap copy ios - name: Update native platform run: npx cap update ios + - name: Set up XCode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 14.2.0 - name: Add empty `GoogleService-Info.plist` run: echo "$GOOGLE_SERVICE_INFO_PLIST" > ios/App/App/GoogleService-Info.plist env: From f70ec95dc53c3448dec592f6b5d9ac091cb98e95 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:59:42 +0200 Subject: [PATCH 8/9] Update ios.yml --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 417a94ce..7ff4e35d 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -69,7 +69,7 @@ jobs: GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}} - name: Build project - run: xcodebuild -workspace './ios/App/App/App.xcworkspace' -scheme App -destination generic/platform=iOS -archivePath App.xcarchive archive + run: xcodebuild -workspace './ios/App/App.xcworkspace' -scheme App -destination generic/platform=iOS -archivePath App.xcarchive archive - name: 🍻 Assemble IPA run: xcodebuild archive -archivePath App.xcarchive -exportArchive -exportOptionsPlist ./GoogleService-Info.plist -exportPath output -allowProvisioningUpdates From 90d73990db86445ebad4992b7b17c5f1678f48c0 Mon Sep 17 00:00:00 2001 From: Pixkk <30828435+pixkk@users.noreply.github.com> Date: Sun, 24 Mar 2024 14:08:12 +0200 Subject: [PATCH 9/9] Update ios.yml --- .github/workflows/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 7ff4e35d..b5237ae0 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -69,7 +69,7 @@ jobs: GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}} - name: Build project - run: xcodebuild -workspace './ios/App/App.xcworkspace' -scheme App -destination generic/platform=iOS -archivePath App.xcarchive archive + run: xcodebuild -workspace './ios/App/App.xcworkspace' -scheme App -destination generic/platform=iOS -archivePath App.xcarchive archive -allowProvisioningUpdates - name: 🍻 Assemble IPA run: xcodebuild archive -archivePath App.xcarchive -exportArchive -exportOptionsPlist ./GoogleService-Info.plist -exportPath output -allowProvisioningUpdates