-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (41 loc) · 1.27 KB
/
Copy pathbuild.yml
File metadata and controls
54 lines (41 loc) · 1.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build
on:
workflow_dispatch:
push:
branches: [master, workflow]
pull_request:
branches: [master, workflow]
env:
CARGO_TERM_COLOR: always
ONDK_VERSION: "r29.5"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
profile: [debug, release]
zygisk: [zygisk, no-zygisk]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup just
uses: extractions/setup-just@v4
- name: Setup Protoc
run: sudo apt-get install -y protobuf-compiler
- name: Setup Android SDK
uses: android-actions/setup-android@v4
- name: Setup Rust (nightly for eBPF)
run: rustup toolchain install nightly --component rust-src
- name: Setup ONDK
run: python3 scripts/setup-ondk.py --version $ONDK_VERSION
- name: Install bpf-linker
run: cargo install bpf-linker
- name: Build
run: just build ${{ matrix.profile }} ${{ matrix.zygisk }}
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: zynx-${{ matrix.profile }}-${{ matrix.zygisk }}
path: |
target/aarch64-linux-android/${{ matrix.profile }}/zynx
target/aarch64-linux-android/${{ matrix.profile }}/zynx.dwp