mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
ci: Add GitHub Actions workflows for CI verification and automated v0.0.1-alpha release
This commit is contained in:
1 parent
8c1104eedf
commit
9723e079b9
2 files changed
+147
No files matched your search
@@ -0,0 +1,33 @@
|
||||
name: CI Build & Kernel Verification
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build & Verify SUB-OS
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Build Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y nasm gcc-x86-64-linux-gnu binutils-x86-64-linux-gnu make qemu-system-x86
|
||||
|
||||
- name: Compile SUB-OS Kernel & Bootloader
|
||||
run: |
|
||||
make clean
|
||||
make CROSS_COMPILE=x86_64-linux-gnu-
|
||||
|
||||
- name: Verify Image Generation
|
||||
run: |
|
||||
test -f SUB-OS.img
|
||||
test -f build/kernel.elf
|
||||
test -f build/kernel.bin
|
||||
ls -lh SUB-OS.img build/kernel.elf build/kernel.bin
|
||||
Reference in new issue
Block a user