Skip to content

Commit

Permalink
Fix workflow android build (#263)
Browse files Browse the repository at this point in the history
- Fix workflow android build
  • Loading branch information
caoccao authored Aug 18, 2023
1 parent 42da219 commit a999674
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: javet-linux-v8-arm-${{ env.JAVET_VERSION }}
name: javet-android-v8-arm-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/armeabi-v7a/*.so

build_javet_arm64:
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: javet-linux-v8-arm64-${{ env.JAVET_VERSION }}
name: javet-android-v8-arm64-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/arm64-v8a/*.so

build_javet_x86:
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: javet-linux-v8-x86-${{ env.JAVET_VERSION }}
name: javet-android-v8-x86-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/x86/*.so

build_javet_x86_64:
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
- name: Upload the Artifact
uses: actions/upload-artifact@v3
with:
name: javet-linux-v8-x86_64-${{ env.JAVET_VERSION }}
name: javet-android-v8-x86_64-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/x86_64/*.so

build_javet_aar:
Expand All @@ -308,11 +308,11 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v3

- name: Setup JDK 11
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
java-version: 17

- name: Setup Python
uses: actions/setup-python@v4
Expand All @@ -334,25 +334,25 @@ jobs:
- name: Download Javet arm
uses: actions/download-artifact@v3
with:
name: javet-linux-v8-arm-${{ env.JAVET_VERSION }}
name: javet-android-v8-arm-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/armeabi-v7a

- name: Download Javet arm64
uses: actions/download-artifact@v3
with:
name: javet-linux-v8-arm64-${{ env.JAVET_VERSION }}
name: javet-android-v8-arm64-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/arm64-v8a

- name: Download Javet x86
uses: actions/download-artifact@v3
with:
name: javet-linux-v8-x86-${{ env.JAVET_VERSION }}
name: javet-android-v8-x86-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/x86

- name: Download Javet x86_64
uses: actions/download-artifact@v3
with:
name: javet-linux-v8-x86_64-${{ env.JAVET_VERSION }}
name: javet-android-v8-x86_64-${{ env.JAVET_VERSION }}
path: android/javet-android/src/main/jniLibs/x86_64

- name: Build the Artifact
Expand All @@ -368,13 +368,22 @@ jobs:
name: javet-android-${{ env.JAVET_VERSION }}
path: android/javet-android/build/outputs/aar/javet*release.aar

- name: Delete Javet Anroid
- name: Delete Javet arm
uses: geekyeggo/delete-artifact@v2
with:
name: javet-android-arm-${{ env.JAVET_VERSION }}
name: javet-android-v8-arm-${{ env.JAVET_VERSION }}

- name: Delete Javet arm64
uses: geekyeggo/delete-artifact@v2
with:
name: javet-android-v8-arm64-${{ env.JAVET_VERSION }}

- name: Delete Javet x86
uses: geekyeggo/delete-artifact@v2
with:
name: javet-android-v8-x86-${{ env.JAVET_VERSION }}

- name: Delete Javet Anroid
- name: Delete Javet x86_64
uses: geekyeggo/delete-artifact@v2
with:
name: javet-android-arm64-${{ env.JAVET_VERSION }}
name: javet-android-v8-x86_64-${{ env.JAVET_VERSION }}

0 comments on commit a999674

Please sign in to comment.