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