Skip to content

Commit

Permalink
workflows: finish script and actions for Stable Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
retrozenith committed Feb 14, 2024
1 parent c585830 commit 17f2d1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 58 deletions.
62 changes: 5 additions & 57 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- 'android-14'

jobs:
build-r9q:
build_aqua:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
target: [SM-G990B]
target: [SM-G990B, SM-G990B2]

steps:
- name: Checkout repo
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Build Kernel Clean
run: |
source ./build_script.sh ${{ matrix.target }} KSU=false
source ./build_script.sh ${{ matrix.target }}
cp ./AnyKernel3/AQUA* ./
- name: Clean Kernel Source
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Build Kernel With KSU
run: |
source ./build_script.sh ${{ matrix.target }} KSU=true
source ./build_script.sh ${{ matrix.target }} --ksu
cp ./AnyKernel3/AQUA* ./
- name: Publish to GitHub
Expand All @@ -58,56 +58,4 @@ jobs:
Kernel: 5.4.259-aqua
Clang: r383902b1
env:
GITHUB_TOKEN: ${{ secrets.TEST }}

build-r9q2:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
target: [SM-G990B2]

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up build environment
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install -yq \
attr ccache clang golang libbrotli-dev \
libgtest-dev libprotobuf-dev libunwind-dev libusb-1.0-0-dev libzstd-dev \
linux-modules-extra-$(uname -r) build-essential lld ninja-build protobuf-compiler zipalign gcc-aarch64-linux-gnu
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch Clang-r3833902b1
run: |
git clone https://github.com/glikched/android_prebuilts_clang-r383902b1 ~/toolchains/clang-r383902b1
- name: Build Kernel Clean
run: |
source ./build_script.sh ${{ matrix.target }} KSU=false
cp ./AnyKernel3/AQUA* ./
- name: Clean Kernel Source
run: |
make mrproper ARCH=arm64 LLVM=1
- name: Build Kernel With KSU
run: |
source ./build_script.sh ${{ matrix.target }} KSU=true
cp ./AnyKernel3/AQUA* ./
- name: Publish to GitHub
uses: softprops/action-gh-release@v1
with:
files: AQUA*
name: AQUA-CI_${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: |
Kernel: 5.4.259-aqua
Clang: r383902b1
env:
GITHUB_TOKEN: ${{ secrets.TEST }}
GITHUB_TOKEN: ${{ secrets.TEST }}
9 changes: 8 additions & 1 deletion build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ else
exit
fi

# Check if KSU flag is provided
if [[ "$*" == *"--ksu"* ]]; then
KSU="true"
else
KSU="false"
fi

# Check the value of KSU
if [ "$KSU" == "true" ]; then
ZIP_NAME="AQUA_KSU_"$DEVICE_NAME"_"$DEVICE_MODEL"_"$(date +%d%m%y-%H%M)""
Expand All @@ -35,7 +42,7 @@ if [ "$KSU" == "true" ]; then
echo "Fetching ...."
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
fi
else
elif [ "$KSU" == "false" ]; then
echo "KSU disabled"
ZIP_NAME="AQUA_"$DEVICE_NAME"_"$DEVICE_MODEL"_"$(date +%d%m%y-%H%M)""
if [ -d "KernelSU" ]; then
Expand Down

0 comments on commit 17f2d1d

Please sign in to comment.