mirror of
https://github.com/revanced/aapt2.git
synced 2025-02-06 15:56:48 +01:00
42 lines
939 B
YAML
42 lines
939 B
YAML
|
name: Build aapt2
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
- dev
|
||
|
workflow_dispatch:
|
||
|
inputs:
|
||
|
logLevel:
|
||
|
description: 'Reason'
|
||
|
required: false
|
||
|
default: 'Update package'
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
name: build
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
target_arch: [x86_64, x86, arm64-v8a, armeabi-v7a]
|
||
|
fail-fast: false
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: 'true'
|
||
|
|
||
|
- uses: nttld/setup-ndk@v1
|
||
|
id: setup-ndk
|
||
|
with:
|
||
|
ndk-version: r23c
|
||
|
add-to-path: false
|
||
|
- run: ./build.sh ${{ matrix.target_arch }}
|
||
|
env:
|
||
|
NDK_TOOLCHAIN: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64
|
||
|
|
||
|
- name: Upload artifacts
|
||
|
uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
name: dist-${{ matrix.target_arch }}
|
||
|
path: dist
|