Skip to content

Commit

Permalink
Fix CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
retyui committed May 24, 2024
1 parent 4f361e6 commit 7a0d82d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/actions/build-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
default: 'armeabi-v7a,arm64-v8a,x86,x86_64'

module-to-install:
description: 'Module to install (example: "react-native-architectures" or "file:/path/to/module"))'
description: 'Module to install (example: "react-native-architectures" or "/path/to/module"))'
required: true

store-artifacts:
Expand Down Expand Up @@ -66,11 +66,13 @@ runs:
set -x # print all executed commands
# Create new tmp React Native project
npx react-native@${{ inputs.rn-ver }} init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }}
npx react-native@${{ inputs.rn-ver }} init ${{ env.APP_NAME }} --version ${{ inputs.rn-ver }} --skip-git-init --install-pods false
cd ${{ env.APP_NAME }}
# Install my module
yarn add ${{ inputs.module-to-install }}
# Yarn1 syntax: yarn add ${{ inputs.module-to-install }}
# Yarn Berry (2+) syntax:
yarn add @react-native-community/image-editor@portal:${{ inputs.module-to-install }}
# Debug info
npx react-native@${{ inputs.rn-ver }} info
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
arch: arm64-v8a
new-arch-enabled: ${{ matrix.new_arch_enabled }}
rn-ver: ${{ matrix.rn_ver }}
module-to-install: file:${{ github.workspace }}
module-to-install: ${{ github.workspace }}
store-artifacts: true
platform: android

Expand All @@ -93,6 +93,6 @@ jobs:
with:
new-arch-enabled: ${{ matrix.new_arch_enabled }}
rn-ver: ${{ matrix.rn_ver }}
module-to-install: file:${{ github.workspace }}
module-to-install: ${{ github.workspace }}
store-artifacts: true
platform: ios

0 comments on commit 7a0d82d

Please sign in to comment.