Skip to content

Commit

Permalink
workflows: separate the two build env
Browse files Browse the repository at this point in the history
  • Loading branch information
retrozenith committed Feb 13, 2024
1 parent 901b44a commit 2ea6a98
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 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:
build-r9q:
runs-on: ubuntu-latest

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

steps:
- name: Checkout repo
Expand Down Expand Up @@ -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 }}

0 comments on commit 2ea6a98

Please sign in to comment.