Skip to content

Commit

Permalink
chore: remove turbo in favor of expo prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Mar 25, 2024
1 parent 657428e commit 1baf2ef
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 180 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ jobs:

build-android:
runs-on: ubuntu-latest
env:
TURBO_CACHE_DIR: .turbo/android
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -73,55 +71,8 @@ jobs:
- name: Prebuild example
run: yarn example setup

- name: Cache turborepo for Android
uses: actions/cache@v3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-android-
- name: Check turborepo cache for Android
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi
- name: Install JDK
if: env.turbo_cache_hit != 1
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Finalize Android SDK
if: env.turbo_cache_hit != 1
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
- name: Cache Gradle
if: env.turbo_cache_hit != 1
uses: actions/cache@v3
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build example for Android
env:
JAVA_OPTS: "-XX:MaxHeapSize=6g"
run: |
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
build-ios:
runs-on: macos-14
env:
TURBO_CACHE_DIR: .turbo/ios
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -131,23 +82,3 @@ jobs:

- name: Prebuild example
run: yarn example setup

- name: Cache turborepo for iOS
uses: actions/cache@v3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-ios-
- name: Check turborepo cache for iOS
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi
- name: Build example for iOS
run: |
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ android/keystores/debug.keystore
# Expo
.expo/

# Turborepo
.turbo/

# generated by bob
lib/

Expand Down
1 change: 0 additions & 1 deletion TrueSheet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Pod::Spec.new do |s|
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
end
end
end
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"react-native": "^0.73.5",
"react-native-builder-bob": "^0.23.2",
"release-it": "^17.1.1",
"turbo": "^1.12.5",
"typescript": "~5.3.3"
},
"resolutions": {
Expand Down
34 changes: 0 additions & 34 deletions turbo.json

This file was deleted.

72 changes: 0 additions & 72 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2827,7 +2827,6 @@ __metadata:
react-native: "npm:^0.73.5"
react-native-builder-bob: "npm:^0.23.2"
release-it: "npm:^17.1.1"
turbo: "npm:^1.12.5"
typescript: "npm:~5.3.3"
peerDependencies:
react: "*"
Expand Down Expand Up @@ -14419,77 +14418,6 @@ __metadata:
languageName: node
linkType: hard

"turbo-darwin-64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-darwin-64@npm:1.12.5"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"turbo-darwin-arm64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-darwin-arm64@npm:1.12.5"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"turbo-linux-64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-linux-64@npm:1.12.5"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"turbo-linux-arm64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-linux-arm64@npm:1.12.5"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"turbo-windows-64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-windows-64@npm:1.12.5"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"turbo-windows-arm64@npm:1.12.5":
version: 1.12.5
resolution: "turbo-windows-arm64@npm:1.12.5"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"turbo@npm:^1.12.5":
version: 1.12.5
resolution: "turbo@npm:1.12.5"
dependencies:
turbo-darwin-64: "npm:1.12.5"
turbo-darwin-arm64: "npm:1.12.5"
turbo-linux-64: "npm:1.12.5"
turbo-linux-arm64: "npm:1.12.5"
turbo-windows-64: "npm:1.12.5"
turbo-windows-arm64: "npm:1.12.5"
dependenciesMeta:
turbo-darwin-64:
optional: true
turbo-darwin-arm64:
optional: true
turbo-linux-64:
optional: true
turbo-linux-arm64:
optional: true
turbo-windows-64:
optional: true
turbo-windows-arm64:
optional: true
bin:
turbo: bin/turbo
checksum: 10c0/87c5891808b6c5f9a1e9e0179c4d2b1560fdd1b15753840464fb35d6b68208747f6deae93703ec9a5b95db65def95eff36d3670432e5613d427be6b896036dcd
languageName: node
linkType: hard

"type-check@npm:^0.4.0, type-check@npm:~0.4.0":
version: 0.4.0
resolution: "type-check@npm:0.4.0"
Expand Down

0 comments on commit 1baf2ef

Please sign in to comment.