android_windows.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Android (Windows)
  2. on:
  3. pull_request:
  4. branches:
  5. - dev
  6. jobs:
  7. build:
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. os: [windows-latest]
  12. arch: [armeabi-v7a, arm64-v8a]
  13. ndk: ["r22", "r27"]
  14. ndk_sdkver: ["30"]
  15. runs-on: ${{ matrix.os }}
  16. concurrency:
  17. group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Android-Windows-${{ matrix.arch }}-${{ matrix.ndk }}-${{ matrix.ndk_sdkver }}
  18. cancel-in-progress: true
  19. steps:
  20. - name: Cache ndk
  21. id: cache-ndk
  22. uses: actions/cache@v4
  23. with:
  24. path: C:/Users/runneradmin/AppData/Local/.xmake/packages/n/ndk
  25. key: ${{ matrix.os }}-ndk
  26. - uses: actions/checkout@v1
  27. - uses: xmake-io/github-action-setup-xmake@v1
  28. with:
  29. xmake-version: branch@master
  30. actions-cache-folder: '.xmake-cache'
  31. actions-cache-key: 'android-windows'
  32. - name: Configure Pagefile
  33. uses: al-cheb/[email protected]
  34. with:
  35. minimum-size: 8GB
  36. maximum-size: 32GB
  37. disk-root: "C:"
  38. - name: Tests
  39. env:
  40. ANDROID_NDK_ROOT: ""
  41. ANDROID_NDK_HOME: ""
  42. run: |
  43. if ("${{ matrix.ndk }}" -eq "r27") {
  44. xrepo env -y -b "ndk 27" xmake l ./scripts/test.lua -D -p android -a ${{ matrix.arch }} --ndk_sdkver=${{ matrix.ndk_sdkver }}
  45. } else {
  46. xrepo env -y -b "ndk 22" xmake l ./scripts/test.lua -D -p android -a ${{ matrix.arch }} --ndk_sdkver=${{ matrix.ndk_sdkver }}
  47. }