ci: added build-susfs

This commit is contained in:
Rifat Azad
2024-12-24 00:28:28 +06:00
parent b98f0f3618
commit b8f80a2742

40
.github/workflows/build-susfs.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Build SuSFS
on:
push:
branches: [ "next" ]
paths:
- '.github/workflows/build-susfs.yml'
- 'userspace/susfs/**'
workflow_dispatch:
workflow_call:
inputs:
target:
required: true
type: string
os:
required: false
type: string
default: ubuntu-latest
jobs:
build-su:
name: Build userspace susfs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build su
working-directory: ./userspace/susfs
run: $ANDROID_NDK/ndk-build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: susfs
path: ./userspace/susfs/libs
- name: Upload ksud artifact
uses: actions/upload-artifact@v4
with:
name: susfs-${{ inputs.target }}
path: userspace/susfs/libs/**/susfs*