Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jun 30, 2024
1 parent 6c8b59a commit 027dd0a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 33 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb
pull_request:
paths:
- .github/workflows/android.yml
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb

jobs:
e2e-test:
Expand All @@ -33,9 +33,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1

- name: 🧹 Cleanup GitHub Linux runner disk space
Expand All @@ -47,14 +44,14 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Restore yarn caches
- name: Restore node_modules caches
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('bun.lockb') }}

- name: Yarn install
run: yarn install --frozen-lockfile
- name: Bun install
run: bun install --frozen-lockfile

- name: ⚙️ Enable KVM for Android virtualization
shell: bash
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/expo-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ on:
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb
pull_request:
paths:
- .github/workflows/expo-android.yml
- android/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb

jobs:
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1

- name: 🧹 Cleanup GitHub Linux runner disk space
Expand All @@ -36,21 +33,21 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Restore yarn caches
- name: Restore node_modules caches
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('bun.lockb') }}

- name: Yarn install
run: yarn install --frozen-lockfile
- name: Bun install
run: bun install --frozen-lockfile

- name: Generate TestApp
run: |
yarn create expo-app -t blank@@sdk-51 TestApp
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
yarn add v8-android-jit
yarn add file:../react-native-v8
bun add v8-android-jit
bun add file:../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: ..
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/expo-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,41 @@ on:
- src/iosexecutor/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb
pull_request:
paths:
- .github/workflows/expo-ios.yml
- src/iosexecutor/**
- src/v8runtime/**
- package.json
- yarn.lock
- bun.lockb

jobs:
e2e-test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: oven-sh/setup-bun@v1

- name: 🔨 Switch to Xcode 15.4
run: sudo xcode-select --switch /Applications/Xcode_15.4.app

- name: Restore yarn caches
- name: Restore node_modules caches
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-workspace-modules-${{ hashFiles('bun.lockb') }}

- name: Yarn install
run: yarn install --frozen-lockfile
- name: Bun install
run: bun install --frozen-lockfile

- name: Generate TestApp
run: |
yarn create expo-app -t blank@@sdk-51 TestApp
bunx create-expo-app -t blank@@sdk-51 TestApp
cd TestApp
yarn add v8-ios
yarn add file:../react-native-v8
bun add v8-ios
bun add file:../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
working-directory: ..
Expand Down

0 comments on commit 027dd0a

Please sign in to comment.