Skip to content

Commit

Permalink
Merge pull request #2 from TheWildJames/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
TheWildJames authored Jan 7, 2025
2 parents 92c0148 + 3538313 commit 0dec2cd
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-kernel-a12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions .github/workflows/build-kernel-a14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

31 changes: 31 additions & 0 deletions .github/workflows/prerequisites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Download Prebuilt Toolchain

on:
workflow_call: # Makes this file callable by other workflows

jobs:
setup-prerequisites:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download prebuilt toolchain
run: |
AOSP_MIRROR=https://android.googlesource.com
BRANCH=main-kernel-build-2024
# Clone necessary prebuilt tools
git clone $AOSP_MIRROR/platform/prebuilts/build-tools -b $BRANCH --depth 1 build-tools
git clone $AOSP_MIRROR/kernel/prebuilts/build-tools -b $BRANCH --depth 1 kernel-build-tools
git clone $AOSP_MIRROR/platform/system/tools/mkbootimg -b $BRANCH --depth 1 mkbootimg
# Export paths to required tools
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
export GZIP=$GITHUB_WORKSPACE/build-tools/path/linux-x86/gzip
export LZ4=$GITHUB_WORKSPACE/build-tools/path/linux-x86/lz4
export MKBOOTIMG=$GITHUB_WORKSPACE/mkbootimg/mkbootimg.py
export UNPACK_BOOTIMG=$GITHUB_WORKSPACE/mkbootimg/unpack_bootimg.py
echo "Prerequisites downloaded and paths set up."
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release

on:
workflow_dispatch: # Manually triggered workflow

jobs:
#build-a12-kernel:
# uses: ./.github/workflows/build-kernel-a12.yml
# secrets: inherit
#build-a13-kernel:
# uses: ./.github/workflows/build-kernel-a13.yml
# secrets: inherit
build-a14-kernel:
uses: ./.github/workflows/build-kernel-a14.yml
secrets: inherit
#build-a15-kernel:
# uses: ./.github/workflows/build-kernel-a15.yml
# secrets: inherit

0 comments on commit 0dec2cd

Please sign in to comment.