Release Kernel #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Kernel | |
on: | |
workflow_dispatch: | |
jobs: | |
download-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Download release info | |
run: | | |
curl -H "Authorization: token ${{ secrets.TOKEN }}" \ | |
https://api.github.com/repos/qlenlen/kernel_samsung_sm8550/releases/latest \ | |
-o release_info.json | |
cat release_info.json | |
mkdir assets | |
- name: Download all assets | |
run: | | |
ASSET_INFO=$(jq -r '.assets[] | "\(.id) \(.name)"' release_info.json) | |
while IFS= read -r line; do | |
ASSET_ID=$(echo $line | awk '{print $1}') | |
echo $ASSET_ID | |
ASSET_NAME=$(echo $line | awk '{print $2}') | |
echo $ASSET_NAME | |
curl -L -H "Authorization: token ${{ secrets.TOKEN }}" \ | |
-H "Accept: application/octet-stream" \ | |
"https://api.github.com/repos/qlenlen/kernel_samsung_sm8550/releases/assets/$ASSET_ID" \ | |
-o $ASSET_NAME | |
done <<<"$ASSET_INFO" | |
mv *.zip assets | |
- name: Upload assets | |
uses: actions/[email protected] | |
with: | |
name: kernel_samsung_dm3q | |
path: assets | |
- name: Generate TAG | |
run: | | |
DATE=$(date +'%y.%m.%d') | |
echo "TAG=$DATE" >> $GITHUB_ENV | |
- name: Upload release | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "assets/*.zip" | |
allowUpdates: true | |
name: "kernel_samsung_dm3q" | |
tag: "CI_${{ env.TAG }}" | |
body: | | |
Commit: ${{ github.sha }} | |
### Note: | |
Flash the kernel zip with [kernel flasher](https://github.com/qlenlen/KernelFlasher/releases) or TWRP | |
- kalama-5.15.lts-KSU.zip: Use with tiann/KernelSU | |
- kalama-5.15.lts-KSU-susfs.zip: Use with tiann/KernelSU and susfs | |
- kalama-5.15.lts-NEXT.zip: Use with rifsxd/KernelSU-Next | |
- kalama-5.15.lts-LKM.zip: Pure LKM kernel | |
If you prefer LKM mode, do not forget to patch your init_boot. | |
### CHANGELOG | |
### 更新日志 |