You've already forked KernelSU
mirror of
https://github.com/tiann/KernelSU.git
synced 2025-08-27 23:46:34 +00:00
Bumps the actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/download-artifact](https://github.com/actions/download-artifact) and [actions/setup-java](https://github.com/actions/setup-java). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) Updates `actions/setup-java` from 4 to 5 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-java dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: Build ksud
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
target:
|
|
required: true
|
|
type: string
|
|
os:
|
|
required: false
|
|
type: string
|
|
default: ubuntu-latest
|
|
pack_lkm:
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
use_cache:
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ inputs.os }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v5
|
|
|
|
- name: Prepare LKM fies
|
|
if: ${{ inputs.pack_lkm }}
|
|
run: |
|
|
cp android*-lkm/*_kernelsu.ko ./userspace/ksud/bin/aarch64/
|
|
|
|
- name: Setup rustup
|
|
run: |
|
|
rustup update stable
|
|
rustup target add x86_64-apple-darwin
|
|
rustup target add aarch64-apple-darwin
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: userspace/ksud
|
|
cache-targets: false
|
|
|
|
- name: Install cross
|
|
run: |
|
|
RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross --rev 66845c1
|
|
|
|
- name: Build ksud
|
|
run: CROSS_NO_WARNINGS=0 cross build --target ${{ inputs.target }} --release --manifest-path ./userspace/ksud/Cargo.toml
|
|
|
|
- name: Upload ksud artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ksud-${{ inputs.target }}
|
|
path: userspace/ksud/target/**/release/ksud*
|