fetch_ml/.forgejo/workflows/build-cli.yml
Jeremie Fraeys 79faf9556e
Some checks failed
Build CLI with Embedded SQLite / build (arm64, aarch64-linux) (push) Waiting to run
Build CLI with Embedded SQLite / build (x86_64, x86_64-linux) (push) Waiting to run
Build CLI with Embedded SQLite / build-macos (arm64) (push) Waiting to run
Build CLI with Embedded SQLite / build-macos (x86_64) (push) Waiting to run
Security Scan / Security Analysis (push) Waiting to run
Security Scan / Native Library Security (push) Waiting to run
Checkout test / test (push) Successful in 5s
CI/CD Pipeline / Test (push) Failing after 5m48s
CI/CD Pipeline / Dev Compose Smoke Test (push) Has been skipped
CI/CD Pipeline / Build (push) Has been skipped
CI/CD Pipeline / Test Scripts (push) Has been skipped
CI/CD Pipeline / Test Native Libraries (push) Has been skipped
Documentation / build-and-publish (push) Failing after 35s
CI/CD Pipeline / Docker Build (push) Has been skipped
ci: fix version mismatches in build-cli.yml
- Update Zig from 0.15.0 to 0.15.2 (consistent with ci.yml)

- Update SQLite from 3450000 to 3480000 (consistent with Makefile)
2026-02-21 21:03:43 -05:00

80 lines
1.7 KiB
YAML

name: Build CLI with Embedded SQLite
on:
push:
branches: [main, master]
paths:
- 'cli/**'
- '.forgejo/workflows/build-cli.yml'
pull_request:
branches: [main, master]
paths:
- 'cli/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-linux
- aarch64-linux
include:
- target: x86_64-linux
arch: x86_64
- target: aarch64-linux
arch: arm64
steps:
- uses: actions/checkout@v4
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.15.2
- name: Fetch SQLite Amalgamation
run: |
cd cli
make build-sqlite SQLITE_VERSION=3480000
- name: Build Release Binary
run: |
cd cli
zig build prod -Dtarget=${{ matrix.target }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ml-cli-${{ matrix.target }}
path: cli/zig-out/bin/ml
build-macos:
runs-on: macos-latest
strategy:
matrix:
arch: [x86_64, arm64]
steps:
- uses: actions/checkout@v4
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.15.2
- name: Fetch SQLite Amalgamation
run: |
cd cli
make build-sqlite SQLITE_VERSION=3480000
- name: Build Release Binary
run: |
cd cli
zig build prod -Dtarget=${{ matrix.arch }}-macos
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ml-cli-${{ matrix.arch }}-macos
path: cli/zig-out/bin/ml