2024-04-16 13:26:48 +09:00
|
|
|
name: release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
- default
|
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Build on Push Tag 🚀
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout Code
|
|
|
|
id: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup NDK
|
|
|
|
uses: nttld/setup-ndk@v1
|
|
|
|
id: setup-ndk
|
|
|
|
with:
|
2024-04-17 18:20:40 +09:00
|
|
|
ndk-version: r26d
|
2024-04-16 13:53:30 +09:00
|
|
|
|
2024-04-16 13:26:48 +09:00
|
|
|
- name: Setup Go Environment
|
|
|
|
uses: actions/setup-go@master
|
|
|
|
|
|
|
|
- name: Build Libraries
|
|
|
|
env:
|
2024-04-16 15:27:06 +09:00
|
|
|
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
2024-04-16 13:26:48 +09:00
|
|
|
BUILD_MACHINE: linux
|
2024-04-16 13:47:44 +09:00
|
|
|
run: |
|
2024-04-16 15:27:06 +09:00
|
|
|
echo NDK path is $NDK_HOME
|
2024-04-16 13:47:44 +09:00
|
|
|
make -e
|
2024-04-16 13:26:48 +09:00
|
|
|
|
|
|
|
- name: Upload Binaries to Release
|
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
|
with:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: build/*.gz
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
overwrite: true
|
|
|
|
file_glob: true
|