build.yml 847 B

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