forked from 5ec1cff/KernelSU
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.01 KB
/
ksuinit.yml
File metadata and controls
39 lines (35 loc) · 1.01 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
name: Build ksuinit
on:
workflow_call:
inputs:
os:
required: false
type: string
default: ubuntu-latest
jobs:
build:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup rustup
run: |
rustup update stable
rustup target add aarch64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
with:
workspaces: userspace/ksuinit
cache-targets: false
- name: Build ksuinit
run: |
LLVM_BIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER="$LLVM_BIN/aarch64-linux-android26-clang"
export RUSTFLAGS="-C link-arg=-no-pie"
cd userspace/ksuinit
cargo build --target=aarch64-unknown-linux-musl --release
- name: Upload ksuinit artifact
uses: actions/upload-artifact@v6
with:
name: ksuinit
path: userspace/ksuinit/target/**/release/ksuinit*