sevki
c9e1dba412
setup CI/CD for kernel development - added CodeQL for code scanning - every pr is built as an image and is available for 30days on https://oklinux.dev - tagged and released on github for now Signed-off-by: sevki <s@sevki.io>
38 lines
937 B
YAML
38 lines
937 B
YAML
name: Publish Image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: debian:latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
- name: Set up okLinux environment
|
|
if: ${{ steps.release.outputs.release_created }}
|
|
run: |
|
|
./deps
|
|
cd kernel
|
|
export CHROMEOS_KERNEL_FAMILY=termina
|
|
- name: Prepare kernel configuration
|
|
run: make olddefconfig
|
|
- name: Build kernel image
|
|
run: make -j$(nproc) bzImage
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: x86_64
|
|
path: arch/x86_64
|
|
- name: Upload Release Artifact
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: gh release upload ${{ steps.release.outputs.tag_name }} ./arch/x86_64/boot/bzImage
|