forked from gregkh/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
TG-332: Add Github action for building Linux kernel #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
08ace56
TG-332 Add Github action for building Linux kernel
7931c9b
updating .yaml build commands and compiler
e7509e4
fixing .yaml steps
94698c9
changing the file extension from dts to dtso
fbf954d
update make to single thread
095e63a
Fixing environment issues
9a93f5e
add log to see cpuinfo
ec8d42c
Addressing review comments
8027d76
removing make -j as it leads to resource exhausion
86b3ee7
using just make siklu_arm64_defconfig
1be87c7
adding github action cache to speed up build
e3128d9
optimising build using cache, include generated files. Add logic to r…
5ee221f
remove comments as they were being treated as actual path, removing l…
d3929da
Removing armada-8040-n366.dts ipq6018-siklu-ctu-100-fr2.dts & updatin…
55457dc
Removed falcon.dtso file & updated Makefile accordingly
9ae7165
remove arch/arm64/boot/dts/qcom/ipq6018-siklu-ctu-100.dts as well
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: Build Linux Kernel (siklu_arm64_defconfig) | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - tg-v6.12 | ||
| pull_request: | ||
| branches: | ||
| - tg-v6.12 | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| ARCH: arm64 | ||
| CROSS_COMPILE: aarch64-linux-gnu- | ||
| steps: | ||
| - name: Log runner CPU info | ||
| run: | | ||
| echo "CPU core count: $(nproc)" | ||
| echo "Processor info:" | ||
| lscpu | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential bc flex bison libssl-dev libncurses-dev crossbuild-essential-arm64 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Configure kernel (siklu_arm64_defconfig ) | ||
| run: make ARCH=arm64 siklu_arm64_defconfig | ||
|
|
||
| - name: Cache build dependencies and kernel outputs | ||
| uses: actions/cache@v4 | ||
| with: | ||
| # --- Optimized Cache Path: Targeting ALL generated, costly artifacts --- | ||
| path: | | ||
| .config | ||
| vmlinux | ||
| arch/arm64/boot/Image | ||
| Module.symvers | ||
| modules.order | ||
| vmlinux.o | ||
| **/*.ko | ||
| **/*.o | ||
| **/*.cmd | ||
| **/*.d | ||
| **/*.lds | ||
| **/*.s | ||
| **/*.dtb | ||
| include/generated/utsrelease.h | ||
| include/generated/compile.h | ||
|
|
||
| # --- Integrity Cache Key: Ensures cache is reused only if core inputs are identical --- | ||
| key: ${{ runner.os }}-kernel-${{ hashFiles('.config', 'arch/arm64/Makefile') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-kernel- | ||
|
|
||
| - name: Build kernel with arm64 architecture | ||
| run: make -j$(nproc) | ||
|
|
||
| - name: Archive kernel image | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: kernel-image | ||
| path: arch/arm64/boot/Image | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.