Skip to content

Commit 6b7ecc5

Browse files
Update cmake.yml
1 parent ab27c80 commit 6b7ecc5

1 file changed

Lines changed: 9 additions & 20 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,28 @@ jobs:
1919
run: |
2020
sudo apt-get update
2121
sudo apt-get install -y \
22-
nasm \
23-
make \
24-
binutils-i686-linux-gnu \
25-
gcc-i686-linux-gnu \
26-
grub-common \
27-
xorriso \
28-
wget
22+
nasm make binutils-i686-linux-gnu gcc-i686-linux-gnu wget
2923
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'
24+
- name: Download AI Model Asset
3925
run: |
4026
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
27+
# Only download if it doesn't exist (useful if you use caching later)
28+
if [ ! -f assets/smollm2.gguf ]; then
29+
wget -O assets/smollm2.gguf https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf
30+
fi
4231
4332
- name: Build BasicallyLinux
44-
# Pass the asset directory info to your Makefile if needed
4533
run: |
4634
mkdir -p bin
4735
mkdir -p build
36+
# Pass cross-compiler variables to the Makefile
4837
make CC=i686-linux-gnu-gcc LD=i686-linux-gnu-ld AS=nasm
4938
50-
- name: Archive Build Artifacts
39+
- name: Archive Artifacts
5140
if: success()
5241
uses: actions/upload-artifact@v4
5342
with:
54-
name: basicallylinux-binary
43+
name: basicallylinux-alpha
5544
path: |
5645
bin/basicallylinux.bin
5746
assets/smollm2.gguf

0 commit comments

Comments
 (0)