@@ -20,6 +20,9 @@ inputs:
2020 rnef-build-extra-params :
2121 description : ' Extra parameters to pass to "rnef build:android"'
2222 required : false
23+ architectures :
24+ description : ' A comma-separated list of device architectures to build for (e.g. "arm64-v8a,armeabi-v7a")'
25+ required : false
2326 sign :
2427 description : ' Whether to sign the build with release keystore'
2528 required : false
8992
9093 - name : Native Fingerprint
9194 id : fingerprint
92- uses : callstackincubator/android/.github/actions/rnef-native-fingerprint@v1
95+ uses : callstackincubator/android/.github/actions/rnef-native-fingerprint@feat/architectures
9396 with :
9497 platform : android
9598 working-directory : ${{ inputs.working-directory }}
@@ -101,7 +104,7 @@ runs:
101104
102105 - name : Find artifact URL
103106 id : find-artifact
104- uses : callstackincubator/android/.github/actions/find-artifact@v1
107+ uses : callstackincubator/android/.github/actions/find-artifact@feat/architectures
105108 with :
106109 name : ${{ env.ARTIFACT_NAME }}
107110 re-sign : ${{ inputs.re-sign }}
@@ -154,6 +157,7 @@ runs:
154157 run : |
155158 npx rnef build:android \
156159 --variant "${{ inputs.variant }}" \
160+ ${{ inputs.architectures ? '--extra-params -PreactNativeArchitectures=' + inputs.architectures : '' }} \
157161 ${{ inputs.rnef-build-extra-params }}
158162 shell : bash
159163 working-directory : ${{ inputs.working-directory }}
@@ -193,7 +197,7 @@ runs:
193197 # Find artifact URL again before uploading, as other concurrent workflows could upload the same artifact
194198 - name : Find artifact URL again before uploading
195199 id : find-artifact-after-build
196- uses : callstackincubator/android/.github/actions/find-artifact@v1
200+ uses : callstackincubator/android/.github/actions/find-artifact@feat/architectures
197201 with :
198202 name : ${{ env.ARTIFACT_NAME }}
199203 re-sign : ${{ inputs.re-sign }}
@@ -228,7 +232,7 @@ runs:
228232
229233 - name : Post Build
230234 if : ${{ github.event_name == 'pull_request' && inputs.comment-bot == 'true' }}
231- uses : callstackincubator/android/.github/actions/rnef-post-build@v1
235+ uses : callstackincubator/android/.github/actions/rnef-post-build@feat/architectures
232236 with :
233237 title : Android ${{ inputs.variant }} APK for all devices
234238 artifact-url : ${{ steps.upload-artifact.outputs.artifact-url || steps.find-artifact-after-build.outputs.artifact-url }}
0 commit comments