Update cmake.yml #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BasicallyLinux Build Pipeline | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| name: Compile Kernel | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Install Toolchain | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| nasm \ | |
| make \ | |
| binutils-i686-linux-gnu \ | |
| gcc-i686-linux-gnu \ | |
| grub-common \ | |
| xorriso \ | |
| wget | |
| - name: Cache AI Model | |
| id: cache-model | |
| uses: actions/cache@v4 | |
| with: | |
| path: assets/smollm2.gguf | |
| key: ${{ runner.os }}-smollm2-v1 | |
| - name: Download AI Model | |
| if: steps.cache-model.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir -p assets | |
| wget -O assets/smollm2.gguf https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf | |
| - name: Build BasicallyLinux | |
| # Pass the asset directory info to your Makefile if needed | |
| run: | | |
| mkdir -p bin | |
| mkdir -p build | |
| make CC=i686-linux-gnu-gcc LD=i686-linux-gnu-ld AS=nasm | |
| - name: Archive Build Artifacts | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: basicallylinux-binary | |
| path: | | |
| bin/basicallylinux.bin | |
| assets/smollm2.gguf |