build.yml 807 B

12345678910111213141516171819202122232425262728293031323334
  1. name: build
  2. on:
  3. push:
  4. tags:
  5. - 'v*'
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. -
  11. name: Checkout
  12. uses: actions/checkout@v4
  13. with:
  14. fetch-depth: 0
  15. -
  16. name: Setup Go
  17. uses: actions/setup-go@v4
  18. with:
  19. go-version: '1.21.x'
  20. -
  21. name: Build
  22. run: >-
  23. make -j $(nproc) allplus
  24. NDK_CC_ARM64="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang"
  25. NDK_CC_ARM="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang"
  26. -
  27. name: Release
  28. uses: softprops/action-gh-release@v1
  29. with:
  30. files: bin/*
  31. fail_on_unmatched_files: true
  32. generate_release_notes: true