Skip to content

Add AAR building

Add AAR building #8

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a single command using the runners shell
- name: Prepare for build
run: bash build.sh
# Runs a set of commands using the runners shell
- name: Build arm64
run: |
export TARGET_ARCH=arm64
export ANDROID_TARGET=arm64-v8a
bash build_arch.sh
- name: Build arm
run: |
export TARGET_ARCH=arm
export ANDROID_TARGET=armeabi-v7a
bash build_arch.sh
- name: Build x86_64
run: |
export TARGET_ARCH=x64
export ANDROID_TARGET=x86_64
bash build_arch.sh
- name: Build x86
run: |
export TARGET_ARCH=x86
export ANDROID_TARGET=x86
bash build_arch.sh
- name: Upload result
uses: actions/upload-artifact@v4.6.2
with:
name: angle
path: build_out/
- name: Create AAR
run: |
bash create_aar.sh
- name: Upload result
uses: actions/upload-artifact@v4.6.2
with:
name: angle-aar
path: angle.aar