Build Kernel - Android 14 AVD #3
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: Build Kernel - Android 14 AVD | ||
on: | ||
push: | ||
branches: ["main", "ci", "checkci"] | ||
paths: | ||
- ".github/workflows/build-kernel-a14.yml" | ||
- ".github/workflows/gki-kernel.yml" | ||
- ".github/scripts/build_a13.sh" | ||
- "kernel/**" | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- ".github/workflows/build-kernel-a14-avd.yml" | ||
- ".github/workflows/gki-kernel.yml" | ||
- "kernel/**" | ||
workflow_call: | ||
workflow_dispatch: | ||
jobs: | ||
build-kernel: | ||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci' | ||
uses: ./.github/workflows/avd-kernel.yml | ||
secrets: inherit | ||
with: | ||
version_name: android-14-avd | ||
manifest_path: android-14-avd.xml | ||
Check failure on line 25 in .github/workflows/build-kernel-a14-avd.yml
|
||
debug: true | ||
upload-artifacts: | ||
needs: build-kernel | ||
runs-on: ubuntu-latest | ||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/ci' }} | ||
env: | ||
CHAT_ID: ${{ secrets.CHAT_ID }} | ||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }} | ||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
COMMIT_URL: ${{ github.event.head_commit.url }} | ||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: KernelSU | ||
fetch-depth: 0 | ||
- name: List artifacts | ||
run: | | ||
tree | ||
- name: Bot session cache | ||
id: bot_session_cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: scripts/ksubot.session | ||
key: ${{ runner.os }}-bot-session | ||
- name: Upload via bot | ||
run: | | ||
cd $GITHUB_WORKSPACE/KernelSU | ||
export VERSION=$(($(git rev-list --count HEAD) + 10200)) | ||
echo "VERSION: $VERSION" | ||
cd - | ||
export TITLE=android-14-avd-kernel | ||
find . -type f -name "kernel-*" -exec python3 "$GITHUB_WORKSPACE"/KernelSU/scripts/ksubot.py {} + | ||
- name: Upload kernel artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: kernel-android-14-avd | ||
path: kernel-android-14-avd |