Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Star-Seven authored Nov 18, 2023
1 parent d539bd6 commit 475c4dc
Showing 1 changed file with 43 additions and 5 deletions.
48 changes: 43 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build

on: [push]
on: [push, workflow_dispatch]

env:
TOOLCHAIN: cruel
TOOLCHAIN: samsung
INSTALLER: yes

jobs:
Expand All @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
model: [ "G970F,G973F,G975F", "N975F" ]
model: [ "N975F,N976B,N976N" ]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,14 +50,52 @@ jobs:
ccache-${{ env.TOOLCHAIN }}-${{ steps.ccache_model_key.outputs.KEY }}-
ccache-${{ env.TOOLCHAIN }}-
- name: Setup KernelSU
run: |
if [ -d "./KernelSU" ]; then
rm -rf "./KernelSU"
fi
if [ -d "./drivers/kernelsu" ]; then
rm -rf "./drivers/kernelsu"
fi
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s main
model=$(echo "${{ matrix.model }}" | cut -d ',' -f 1)
case $model in
G970F|G973F|G975F)
config=exynos9820-beyond0lte_defconfig
;;
G977B)
config=exynos9820-beyondx_defconfig
;;
G977N)
config=exynos9820-beyondxks_defconfig
;;
N975F)
config=exynos9820-d2s_defconfig
;;
N976B)
config=exynos9820-d2x_defconfig
;;
N971N)
config=exynos9820-d1x_defconfig
;;
N976N)
config=exynos9820-d2xks_defconfig
;;
esac
echo -e "CONFIG_KSU=y" >> arch/arm64/configs/$config
echo -e "CONFIG_OVERLAY_FS=y" >> arch/arm64/configs/$config
echo -e "CONFIG_OVERLAYFS=y" >> arch/arm64/configs/$config
echo -e "CONFIG_FS_OVERLAYFS=y" >> arch/arm64/configs/$config
- name: Kernel Configure
run: |
set -e -o pipefail
./cruelbuild config \
model=${{ matrix.model }} \
name="Cruel-devel" \
name="Star7-KernelSU-v1.0"\
toolchain=$TOOLCHAIN \
+magisk \
-magisk \
+nohardening \
+ttl \
+wireguard \
Expand Down

0 comments on commit 475c4dc

Please sign in to comment.