-
-
Notifications
You must be signed in to change notification settings - Fork 55
51 lines (46 loc) · 1.16 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
permissions:
id-token: write
attestations: write
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: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-name: dist-${{ matrix.target_arch }}
subject-path: dist
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.target_arch }}
path: dist