Skip to content

Commit

Permalink
🎉Release 1.3,完整修复Android CI Release大问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Hny0305Lin committed Jul 8, 2024
1 parent 486cf3a commit 486be54
Showing 1 changed file with 81 additions and 2 deletions.
83 changes: 81 additions & 2 deletions .github/workflows/androidsign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,90 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ env.COMMIT_MESSAGE }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用环境变量
continue-on-error: true


multi-platform-test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
api-level: [28, 29, 30, 31, 33] # 你可以根据需要调整 API 级别
target: [default, google_apis]
arch: [x86, x86_64, arm64-v8a] # 你可以根据需要调整架构
include:
- api-level: 28
target: default
arch: x86
- api-level: 29
target: default
arch: x86_64
- api-level: 29
target: default
arch: arm64-v8a
- api-level: 29
target: google_apis
arch: arm64-v8a
- api-level: 30
target: default
arch: x86_64
- api-level: 30
target: google_apis
arch: x86_64
- api-level: 30
target: google_apis
arch: arm64-v8a
- api-level: 31
target: default
arch: x86_64
- api-level: 31
target: google_apis
arch: x86_64
- api-level: 31
target: google_apis
arch: arm64-v8a
- api-level: 33
target: default
arch: x86_64
- api-level: 33
target: google_apis
arch: x86_64
- api-level: 33
target: google_apis
arch: arm64-v8a

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedAndroidTest --stacktrace

0 comments on commit 486be54

Please sign in to comment.