Skip to content

Commit

Permalink
Add GH Action to run iOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Nov 30, 2022
1 parent 94b71f5 commit d52f674
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build app

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-ios:
name: Build iOS app
# if: github.event.pull_request.draft == false
runs-on: macos-12

steps:
- name: Check out Git repository
uses: actions/checkout@v3

# - name: Select Xcode version
# run: sudo xcode-select -s /Applications/Xcode_13.4.1.app

- name: Set up Node.js
uses: actions/setup-node@v3.5.1
with:
node-version: 14
check-latest: true
cache: npm

- name: Set up CocoaPods cache
uses: actions/cache@v3
with:
path: ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Node.js dependencies
run: npm ci --no-audit

- name: Run expo prebuild
run: npx expo-cli prebuild --clean --platform ios

- name: Build app
run: |
cd ios
ls -Alh
xcodebuild archive \
-workspace "Jellyfin.xcworkspace" \
-scheme "Jellyfin" \
-configuration Release \
-archivePath build/Jellyfin.xcarchive \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: Build app archive
run: |
ls -Alh ios
cd ios/build
ls -Alh
ls -Alh Jellyfin.xcarchive
ls -Alh Jellyfin.xcarchive/Products
cp Jellyfin.xcarchive/Products/Applications ./Payload
zip -r Jellyfin.ipa Payload
- name: Upload app archive
uses: actions/upload-artifact@v3
with:
name: archive
path: ios/build/Jellyfin.ipa

0 comments on commit d52f674

Please sign in to comment.