-
Notifications
You must be signed in to change notification settings - Fork 179
62 lines (53 loc) · 1.35 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
52
53
54
55
56
57
58
59
60
61
62
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
workflow_dispatch:
inputs:
config:
type: 'nothing'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone dependencies
run: |
cd ..
git clone https://github.com/SeeFlowerX/ebpf
git clone https://github.com/SeeFlowerX/ebpfmanager
cd -
bash ./build_env.sh
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
- name: Setup Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
local-cache: true
- name: Build
run: |
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
make clean && BUILD_TAGS=forarm make
make clean && make
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: stackplz_arm
path: bin/stackplz_arm
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: stackplz_arm64
path: bin/stackplz_arm64