Skip to content

Commit ab27c80

Browse files
Update cmake.yml
1 parent 1197346 commit ab27c80

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,34 @@ jobs:
2424
binutils-i686-linux-gnu \
2525
gcc-i686-linux-gnu \
2626
grub-common \
27-
xorriso
27+
xorriso \
28+
wget
29+
30+
- name: Cache AI Model
31+
id: cache-model
32+
uses: actions/cache@v4
33+
with:
34+
path: assets/smollm2.gguf
35+
key: ${{ runner.os }}-smollm2-v1
36+
37+
- name: Download AI Model
38+
if: steps.cache-model.outputs.cache-hit != 'true'
39+
run: |
40+
mkdir -p assets
41+
wget -O assets/smollm2.gguf https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf
2842
2943
- name: Build BasicallyLinux
30-
# We override the compiler variables to use the installed cross-compiler
44+
# Pass the asset directory info to your Makefile if needed
3145
run: |
3246
mkdir -p bin
47+
mkdir -p build
3348
make CC=i686-linux-gnu-gcc LD=i686-linux-gnu-ld AS=nasm
3449
3550
- name: Archive Build Artifacts
3651
if: success()
3752
uses: actions/upload-artifact@v4
3853
with:
3954
name: basicallylinux-binary
40-
path: bin/basicallylinux.bin
55+
path: |
56+
bin/basicallylinux.bin
57+
assets/smollm2.gguf

0 commit comments

Comments
 (0)