-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.06 KB
/
main.yml
File metadata and controls
35 lines (32 loc) · 1.06 KB
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
name: AndroidBox Main
run-name: AndroidBox build
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.2.0
with:
go-version: 1.22
- uses: nttld/setup-ndk@v1
with:
ndk-version: r26d
- name: Build the build tool
run: 'pwd && go mod tidy && cd cmd/build && go build .'
- name: check build config
run: 'pwd && cat .github/config/main.config.yaml'
- name: Build AndroidBox
run: 'pwd && cmd/build/build -f .github/config/main.config.yaml -t ${{ github.ref_name }}'
- name: Build fuzz
run: 'pwd && cmd/build/build -f .github/config/fuzz.config.yaml -t ${{ github.ref_name }}'
- name: Create Release
uses: ncipollo/release-action@v1.15.0
with:
artifacts: cmd/build/build,cmd/AndroidBox/AndroidBox_*,cmd/fuzz/fuzz_*