Skip to content

Commit cf36e53

Browse files
Create cmake.yml
1 parent 3ab43f5 commit cf36e53

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: BasicallyLinux CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Source Code
15+
uses: actions/checkout@v4
16+
17+
- name: Install Build Essentials
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y \
21+
nasm \
22+
make \
23+
binutils-i686-linux-gnu \
24+
gcc-i686-linux-gnu \
25+
grub-pc-bin \
26+
xorriso
27+
28+
- name: Compile BasicallyLinux
29+
run: |
30+
# We specify the cross-compiler explicitly in case the Makefile
31+
# uses generic 'gcc' or 'ld' names.
32+
make CC=i686-linux-gnu-gcc LD=i686-linux-gnu-ld AS=nasm
33+
34+
- name: Verify Binary Integrity
35+
run: |
36+
if [ ! -f bin/basicallylinux.bin ]; then
37+
echo "❌ Error: basicallylinux.bin was not generated!"
38+
exit 1
39+
fi
40+
echo "✅ Build Successful: Kernel binary verified."
41+
42+
- name: Upload Build Artifacts
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: basicallylinux-kernel-bin
46+
path: bin/basicallylinux.bin

0 commit comments

Comments
 (0)