diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cca63bb3cfc..8868a59d2bf8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,13 @@ on: - 'android-14' jobs: - build: + build-r9q: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - target: [SM-G990B, SM-G990B2] + target: [SM-G990B] steps: - name: Checkout repo @@ -48,3 +48,44 @@ jobs: BUILD_DATE: $(TZ='Romania/Bucharest' date) 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 + run: | + source ./build_script.sh ${{ matrix.target }} + + - name: Publish to GitHub + uses: softprops/action-gh-release@v1 + with: + files: AnyKernel3/AQUA* + name: AQUA-CI_${{ github.run_id }} + tag_name: ${{ github.run_id }} + body: | + BUILD_DATE: $(TZ='Romania/Bucharest' date) + env: + GITHUB_TOKEN: ${{ secrets.TEST }} \ No newline at end of file