Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jun 30, 2024
1 parent 5785946 commit b82cd4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/expo-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
bun add v8-android-jit
bun add file:../react-native-v8
bun add file:${ github.workspace }}/react-native-v8
jq '.expo.android.package = "com.testapp" | .expo.plugins += ["react-native-v8"] | .expo.jsEngine = "jsc"' app.json > app.json.tmp && mv -f app.json.tmp app.json
echo 'if (global._v8runtime) { console.log(`=== V8 version[${global._v8runtime().version}] ===`); }' >> App.js
working-directory: ..
working-directory: ${{ runner.temp }}

- name: Build TestApp
working-directory: ../TestApp
working-directory: ${{ runner.temp }}/TestApp
run: |
npx expo prebuild -p android
cd android
Expand All @@ -72,7 +72,7 @@ jobs:
api-level: 34
arch: x86_64
target: google_apis
working-directory: ../TestApp/android
working-directory: ${{ runner.temp }}/TestApp/android
script: |
adb install -r app/build/outputs/apk/release/app-release.apk
adb logcat -c
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Collect failure files
if: failure()
run: |
cp ../TestApp/android/adb.log .
cp "${{ runner.temp }}/TestApp/android/adb.log" .
- name: Upload failed artifacts
if: failure()
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/expo-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,23 @@ jobs:

- name: Generate TestApp
run: |
pwd
cd ..
pwd
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
bun add v8-ios
bun add file:../react-native-v8
bun add file:${ github.workspace }}/react-native-v8
jq '.expo.ios.bundleIdentifier = "com.testapp" | .expo.plugins += [["react-native-v8", {"ios":true}]] | .expo.jsEngine = "jsc"' app.json > app.json.tmp && mv -f app.json.tmp app.json
echo 'if (global._v8runtime) { console.log(`=== V8 version[${global._v8runtime().version}] ===`); }' >> App.js
pwd
working-directory: ${{ runner.temp }}

- name: Build TestApp
working-directory: ../TestApp
working-directory: ${{ runner.temp }}/TestApp
run: |
pwd
npx expo prebuild -p ios
cd ios
xcodebuild -workspace ./TestApp.xcworkspace -scheme TestApp -configuration Release -derivedDataPath ./build -destination 'generic/platform=iOS Simulator' build | xcpretty
- name: Run TestApp
working-directory: ../TestApp/ios
working-directory: ${{ runner.temp }}/TestApp/ios
run: |
SIMUDID=$(xcrun simctl list devices available -j | jq -r '.devices."com.apple.CoreSimulator.SimRuntime.iOS-17-5"[] | select(.name=="iPhone 15 Pro") | .udid')
echo "Using simulator udid[${SIMUDID}]"
Expand All @@ -75,7 +71,7 @@ jobs:
- name: Collect failure files
if: failure()
run: |
cp ../TestApp/ios/sim.log .
cp "${{ runner.temp }}/TestApp/ios/sim.log" .
- name: Upload failed artifacts
if: failure()
Expand Down

0 comments on commit b82cd4f

Please sign in to comment.