File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,16 @@ jobs:
1919 run : |
2020 sudo apt-get update
2121 sudo apt-get install -y \
22- nasm make binutils-i686-linux-gnu gcc-i686-linux-gnu wget
22+ nasm \
23+ make \
24+ binutils-i686-linux-gnu \
25+ gcc-i686-linux-gnu \
26+ libgcc-s1-i386-cross \
27+ wget
2328
2429 - name : Download AI Model Asset
2530 run : |
2631 mkdir -p assets
27- # Only download if it doesn't exist (useful if you use caching later)
2832 if [ ! -f assets/smollm2.gguf ]; then
2933 wget -O assets/smollm2.gguf https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf
3034 fi
@@ -33,14 +37,17 @@ jobs:
3337 run : |
3438 mkdir -p bin
3539 mkdir -p build
36- # Pass cross-compiler variables to the Makefile
37- make CC=i686-linux-gnu-gcc LD=i686-linux-gnu-ld AS=nasm
40+ # We use GCC as the linker wrapper to automatically locate libgcc.a
41+ # This solves the __udivdi3 and __divdi3 errors
42+ make CC=i686-linux-gnu-gcc \
43+ LD=i686-linux-gnu-gcc \
44+ AS=nasm
3845
3946 - name : Archive Artifacts
4047 if : success()
4148 uses : actions/upload-artifact@v4
4249 with :
4350 name : basicallylinux-alpha
4451 path : |
45- bin/basicallylinux .bin
52+ kernel .bin
4653 assets/smollm2.gguf
You can’t perform that action at this time.
0 commit comments