Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Jul 31, 2024
1 parent da886ec commit a59f4a0
Show file tree
Hide file tree
Showing 3 changed files with 409 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Linux

on:
push:

jobs:
build:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: 'torvalds/linux'
ref: v6.6
fetch-depth: 1
path: linux/
- name: Install required tools
run: sudo apt-get install -y libelf-dev
- name: Build kernel
run: |
config=$(readlink --canonicalize-existing data/config)
build=$(pwd)/build/
cd linux/
export KBUILD_OUTPUT="${build}"
mkdir "${KBUILD_OUTPUT}"
KCONFIG_ALLCONFIG="${config}" make O="${KBUILD_OUTPUT}" allnoconfig
echo "::group::config"
cat "${KBUILD_OUTPUT}/.config"
echo "::endgroup::"
make O="${KBUILD_OUTPUT}" -j8
- uses: actions/upload-artifact@v4
with:
name: kernel
path: data/build/arch/x86_64/boot/bzImage
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Test

on:
push:
pull_request:
workflow_call:

env:
Expand Down
Loading

0 comments on commit a59f4a0

Please sign in to comment.