From 94e0c22e50c143bbdc7f8af8f7bd3147acb0b675 Mon Sep 17 00:00:00 2001 From: Lukas Martini Date: Sat, 11 Nov 2023 20:25:30 +0100 Subject: [PATCH] Add workflow for kernel compilation --- .github/workflows/kernel.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/kernel.yml diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml new file mode 100644 index 00000000..980f51bd --- /dev/null +++ b/.github/workflows/kernel.yml @@ -0,0 +1,37 @@ +name: Kernel binary build + +on: + push: + branches: + - main + + paths: + - 'src/**' + - 'ext/**' + - 'Makefile.static' + - 'configure' + - '.github/workflows/kernel.yml' + +jobs: + kernel: + runs-on: ubuntu-latest + container: + image: ghcr.io/lutoma/xelix/toolchain:latest + volumes: + - .:/src + + steps: + - name: Check out git repository + uses: actions/checkout@v4 + + - name: Configure sources + run: ./configure + + - name: Compile kernel + run: make + + - name: Upload binary artifact + uses: actions/upload-artifact@v3 + with: + name: kernel-binary + path: xelix.bin