From 2d28eafb82da88ef33ab2d06368caa9d34d90648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Sun, 7 Apr 2024 11:27:41 +0100 Subject: [PATCH] Github Action: Add kernel patch test build to Manual action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonçalo Negrier Duarte --- .github/workflows/extra.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/extra.yaml b/.github/workflows/extra.yaml index 8180d478..18ba78d6 100644 --- a/.github/workflows/extra.yaml +++ b/.github/workflows/extra.yaml @@ -1,6 +1,15 @@ name: Manual actions on: workflow_dispatch + inputs: + BUILD_KERNEL_PATCH: + description: 'Test build kernel patch' + required: true + default: 'true' + type: choice + options: + - true + - false jobs: build: runs-on: ubuntu-latest @@ -26,4 +35,15 @@ jobs: ## limits ssh access and adds the ssh public key for the user which triggered the workflow limit-access-to-actor: true ## limits ssh access and adds the ssh public keys of the listed GitHub users - limit-access-to-users: johnfanv2 \ No newline at end of file + limit-access-to-users: johnfanv2 + # Use to test kernel patch build if needed + release-kernel-patch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build kernel patch + if: ${{ github.event.inputs.BUILD_KERNEL_PATCH }} == 'true' + run: ./deploy/build_kernelpatch.sh + shell: bash