Skip to content

Commit

Permalink
chore: add different builds for tvos and ios
Browse files Browse the repository at this point in the history
  • Loading branch information
Duell10111 committed Jun 22, 2024
1 parent 79fc376 commit 5522661
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
**/node_modules
Expand Down
38 changes: 36 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,59 @@ on:
branches:
- main
- github-build
release:
types: [ published ]

jobs:
build_ios_without_signing_tvos:
name: Build Expo (iOS) Without Signing
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Prebuild iOS
env:
EXPO_TV: 1
run: npx expo prebuild -p ios --clean
- name: Build Expo IPA
run: |
cd ios
xcodebuild -scheme reacttube -workspace reacttube.xcworkspace -configuration release archive -archivePath reacttube.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
../scripts/xcarchive_to_ipa.sh reacttube.xcarchive
- name: Upload IPA
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: tvos_ipa
path: ios/*.ipa
- name: Upload IPA to Release
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v1
with:
files: ios/*.ipa
build_ios_without_signing_phone:
name: Build Expo (iOS) Without Signing
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Prebuild iOS
run: npx expo prebuild -p ios --clean
- name: Build Expo IPA
run: |
cd ios
xcodebuild -scheme reacttube -workspace reacttube.xcworkspace -configuration release archive -archivePath reacttube.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
../scripts/xcarchive_to_ipa.sh reacttube.xcarchive
- name: Upload IPA
uses: actions/upload-artifact@v4
with:
name: ios_ipa
path: ios/*.ipa
- name: Upload IPA to Release
if: ${{ github.event_name == 'release' }}
uses: softprops/action-gh-release@v1
with:
files: ios/*.ipa
1 change: 0 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
[
"@react-native-tvos/config-tv",
{
"isTV": true,
"showVerboseWarnings": false,
"tvosDeploymentTarget": "13.4",
"removeFlipperOnAndroid": true,
Expand Down

0 comments on commit 5522661

Please sign in to comment.