a #47
Workflow file for this run
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: a | ||
on: | ||
workflow_dispatch: | ||
env: | ||
my_secrets: ${{ env.DEVUPLOAD}} | ||
Check failure on line 8 in .github/workflows/a.yaml GitHub Actions / aInvalid workflow file
|
||
time: (TZ=Asia/Jakarta date "+%d_%m_%Y") | ||
zipname: Ryzen-ksu-${{ env.time }} | ||
jobs: | ||
build-kernel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Requirement | ||
run: | | ||
sudo apt install python2 -y | ||
echo "$ZIPNAME" | ||
- name: Pull toolchain | ||
run: | | ||
mkdir clang && git clone -b clang-13.0 https://github.com/roniwae/RastaMod69-Clang.git clang --depth=1 | ||
- name: Build kernel | ||
run: | | ||
export KBUILD_BUILD_USER="@roniwae" | ||
export KBUILD_BUILD_HOST="CahKemplo" | ||
export PATH=$GITHUB_WORKSPACE/clang/bin:${PATH} | ||
args=" ARCH=arm64 \ | ||
O=out \ | ||
CC=clang | ||
LD=ld.lld | ||
CLANG_TRIPLE=aarch64-linux-gnu- \ | ||
CROSS_COMPILE=$GITHUB_WORKSPACE/clang/bin/aarch64-linux-gnu- \ | ||
CROSS_COMPILE_ARM32=$GITHUB_WORKSPACE/clang/bin/arm-linux-gnueabi- " | ||
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash - | ||
make ${args} vendor/ginkgo-perf_defconfig | ||
echo "KERNEL_VERSION="$(cat arch/arm64/configs/vendor/ginkgo-perf_defconfig | grep "CONFIG_LOCALVERSION\=" | sed -r 's/.*"(.+)".*/\1/' | sed 's/^.//')"" >> $GITHUB_ENV | ||
make -j$(($(getconf _NPROCESSORS_ONLN) * 2)) ${args} | ||
- name: Package kernel | ||
run: | | ||
git clone --depth=1 https://github.com/roniwae/AnyKernel3.git -b MIUI AnyKernel3 && rm -rf AnyKernel3/.git AnyKernel3/.github AnyKernel3/README.md | ||
if [[ -f out/arch/arm64/boot/Image.gz-dtb ]]; then | ||
cp out/arch/arm64/boot/Image.gz-dtb AnyKernel3/Image.gz-dtb | ||
elif [[ -f out/arch/arm64/boot/Image-dtb ]]; then | ||
cp out/arch/arm64/boot/Image-dtb AnyKernel3/Image-dtb | ||
elif [[ -f out/arch/arm64/boot/Image.gz ]]; then | ||
cp out/arch/arm64/boot/Image.gz AnyKernel3/Image.gz | ||
elif [[ -f out/arch/arm64/boot/Image ]]; then | ||
cp out/arch/arm64/boot/Image AnyKernel3/Image | ||
elif [ -f out/arch/arm64/boot/dtbo.img ]; then | ||
cp out/arch/arm64/boot/dtbo.img AnyKernel3/dtbo.img | ||
fi | ||
cd AnyKernel3 | ||
zip ../${{ env.zipname }} -r -9 . | ||
cd .. | ||
- name: Upload kernel to artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.zipname }} | ||
path: AnyKernel3/* | ||
- name: Upload to devupload | ||
run: | | ||
bash <(curl -s https://devuploads.com/upload.sh) -f ${{ env.zipname }} -k ${{ env.my_secrets }} |