You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
ci: workflow modifications
This commit is contained in:
10
.github/workflows/build-kernel-a12.yml
vendored
10
.github/workflows/build-kernel-a12.yml
vendored
@@ -1,14 +1,14 @@
|
|||||||
name: Build Kernel - Android 12
|
name: Build Kernel - Android 12
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "ci", "checkci"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a12.yml"
|
- ".github/workflows/build-kernel-a12.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
- ".github/scripts/build_a12.sh"
|
- ".github/scripts/build_a12.sh"
|
||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a12.yml"
|
- ".github/workflows/build-kernel-a12.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
@@ -17,7 +17,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
jobs:
|
jobs:
|
||||||
build-kernel:
|
build-kernel:
|
||||||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
|
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
needs: build-kernel
|
needs: build-kernel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/ci' }}
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/next' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/next' }}
|
||||||
env:
|
env:
|
||||||
CHAT_ID: ${{ secrets.CHAT_ID }}
|
CHAT_ID: ${{ secrets.CHAT_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
path: Image-android12*/*.img.gz
|
path: Image-android12*/*.img.gz
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
|
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/next'
|
||||||
uses: ./.github/workflows/gki-kernel.yml
|
uses: ./.github/workflows/gki-kernel.yml
|
||||||
with:
|
with:
|
||||||
version: android12-5.10
|
version: android12-5.10
|
||||||
|
|||||||
10
.github/workflows/build-kernel-a13.yml
vendored
10
.github/workflows/build-kernel-a13.yml
vendored
@@ -1,14 +1,14 @@
|
|||||||
name: Build Kernel - Android 13
|
name: Build Kernel - Android 13
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "ci", "checkci"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a13.yml"
|
- ".github/workflows/build-kernel-a13.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
- ".github/scripts/build_a13.sh"
|
- ".github/scripts/build_a13.sh"
|
||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a13.yml"
|
- ".github/workflows/build-kernel-a13.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
@@ -17,7 +17,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
jobs:
|
jobs:
|
||||||
build-kernel:
|
build-kernel:
|
||||||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
|
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
needs: build-kernel
|
needs: build-kernel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/ci' }}
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/next' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/next' }}
|
||||||
env:
|
env:
|
||||||
CHAT_ID: ${{ secrets.CHAT_ID }}
|
CHAT_ID: ${{ secrets.CHAT_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
@@ -141,7 +141,7 @@ jobs:
|
|||||||
path: Image-android13*/*.img.gz
|
path: Image-android13*/*.img.gz
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
|
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
10
.github/workflows/build-kernel-a14.yml
vendored
10
.github/workflows/build-kernel-a14.yml
vendored
@@ -1,14 +1,14 @@
|
|||||||
name: Build Kernel - Android 14
|
name: Build Kernel - Android 14
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "ci", "checkci"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a14.yml"
|
- ".github/workflows/build-kernel-a14.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
- ".github/scripts/build_a13.sh"
|
- ".github/scripts/build_a13.sh"
|
||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a14.yml"
|
- ".github/workflows/build-kernel-a14.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
@@ -17,7 +17,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
jobs:
|
jobs:
|
||||||
build-kernel:
|
build-kernel:
|
||||||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
|
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
needs: build-kernel
|
needs: build-kernel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/ci' }}
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/next' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/next' }}
|
||||||
env:
|
env:
|
||||||
CHAT_ID: ${{ secrets.CHAT_ID }}
|
CHAT_ID: ${{ secrets.CHAT_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
@@ -147,7 +147,7 @@ jobs:
|
|||||||
path: Image-android14*/*.img.gz
|
path: Image-android14*/*.img.gz
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
|
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
10
.github/workflows/build-kernel-a15.yml
vendored
10
.github/workflows/build-kernel-a15.yml
vendored
@@ -1,14 +1,14 @@
|
|||||||
name: Build Kernel - Android 15
|
name: Build Kernel - Android 15
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "ci", "checkci"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a15.yml"
|
- ".github/workflows/build-kernel-a15.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
- ".github/scripts/build_a13.sh"
|
- ".github/scripts/build_a13.sh"
|
||||||
- "kernel/**"
|
- "kernel/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-kernel-a15.yml"
|
- ".github/workflows/build-kernel-a15.yml"
|
||||||
- ".github/workflows/gki-kernel.yml"
|
- ".github/workflows/gki-kernel.yml"
|
||||||
@@ -17,7 +17,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
jobs:
|
jobs:
|
||||||
build-kernel:
|
build-kernel:
|
||||||
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/checkci'
|
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
needs: build-kernel
|
needs: build-kernel
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/ci' }}
|
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/next' ) || github.ref_type == 'tag' || github.ref == 'refs/heads/next' }}
|
||||||
env:
|
env:
|
||||||
CHAT_ID: ${{ secrets.CHAT_ID }}
|
CHAT_ID: ${{ secrets.CHAT_ID }}
|
||||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
@@ -105,7 +105,7 @@ jobs:
|
|||||||
path: Image-android15*/*.img.gz
|
path: Image-android15*/*.img.gz
|
||||||
|
|
||||||
check-build-kernel:
|
check-build-kernel:
|
||||||
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/checkci'
|
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || github.ref == 'refs/heads/next'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|||||||
4
.github/workflows/build-lkm.yml
vendored
4
.github/workflows/build-lkm.yml
vendored
@@ -1,11 +1,11 @@
|
|||||||
name: Build LKM for KernelSU
|
name: Build LKM for KernelSU
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "ci", "checkci"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-lkm.yml"
|
- ".github/workflows/build-lkm.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/build-lkm.yml"
|
- ".github/workflows/build-lkm.yml"
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|||||||
4
.github/workflows/build-su.yml
vendored
4
.github/workflows/build-su.yml
vendored
@@ -1,13 +1,13 @@
|
|||||||
name: Build SU
|
name: Build SU
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main", "ci" ]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/build-su.yml'
|
- '.github/workflows/build-su.yml'
|
||||||
- 'userspace/su/**'
|
- 'userspace/su/**'
|
||||||
- 'scripts/ksubot.py'
|
- 'scripts/ksubot.py'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "next" ]
|
||||||
paths:
|
paths:
|
||||||
- 'userspace/su/**'
|
- 'userspace/su/**'
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/clippy.yml
vendored
2
.github/workflows/clippy.yml
vendored
@@ -3,7 +3,7 @@ name: Clippy check
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- next
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/clippy.yml'
|
- '.github/workflows/clippy.yml'
|
||||||
- 'userspace/ksud/**'
|
- 'userspace/ksud/**'
|
||||||
|
|||||||
4
.github/workflows/rustfmt.yml
vendored
4
.github/workflows/rustfmt.yml
vendored
@@ -3,13 +3,13 @@ name: Rustfmt check
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'next'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/rustfmt.yml'
|
- '.github/workflows/rustfmt.yml'
|
||||||
- 'userspace/ksud/**'
|
- 'userspace/ksud/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'next'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/rustfmt.yml'
|
- '.github/workflows/rustfmt.yml'
|
||||||
- 'userspace/ksud/**'
|
- 'userspace/ksud/**'
|
||||||
|
|||||||
4
.github/workflows/shellcheck.yml
vendored
4
.github/workflows/shellcheck.yml
vendored
@@ -3,13 +3,13 @@ name: ShellCheck
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'next'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/shellcheck.yml'
|
- '.github/workflows/shellcheck.yml'
|
||||||
- '**/*.sh'
|
- '**/*.sh'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'next'
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/shellcheck.yml'
|
- '.github/workflows/shellcheck.yml'
|
||||||
- '**/*.sh'
|
- '**/*.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user