From 580914f427745172489a9f25fc996290c96cd807 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 25 Feb 2024 16:56:59 +0100 Subject: [PATCH] build: update Signed-off-by: AuxXxilium --- .github/workflows/build.yml | 11 ++++++++++- bzImage => modules/kernel/bzImage | Bin 2 files changed, 10 insertions(+), 1 deletion(-) rename bzImage => modules/kernel/bzImage (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 536110c..8e3bb1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,16 @@ jobs: fi echo "add kernel" - tar caf ${{ github.workspace }}/source/kernel.tgz -C ${{ github.workspace }}/bzImage + if [ ! -d "${{ github.workspace }}/source/kernel" ]; then + mkdir -p "${{ github.workspace }}/source/kernel" + chmod a+rw -R "${{ github.workspace }}/source/kernel" + fi + + KERNEL_PATH="${{ github.workspace }}/kernel" + + cp -Rvf "${KERNEL_PATH}/." "${{ github.workspace }}/source/kernel" + + tar caf ${{ github.workspace }}/source/kernel.tgz -C ${{ github.workspace }}/source/kernel . - name: Upload to Artifacts uses: actions/upload-artifact@v3 diff --git a/bzImage b/modules/kernel/bzImage similarity index 100% rename from bzImage rename to modules/kernel/bzImage