Skip to content

Build with RHEL 8 / c8s ABI #24

Build with RHEL 8 / c8s ABI

Build with RHEL 8 / c8s ABI #24

Workflow file for this run

---
name: Build quantize binary
permissions:
contents: read
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main
workflow_dispatch:
jobs:
macos-build:
name: "Build quantize on macOS ARM64 (M1)"
runs-on: "macos-14"
steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- name: system info
run: sysctl -a
- name: make build/quantize from llama.cpp sources
env:
CMAKE_ARGS: "-DLLAMA_FATAL_WARNINGS=ON -DLLAMA_METAL_EMBED_LIBRARY=ON"
run: make quantize
- name: file info
run: file build/quantize*
- uses: actions/upload-artifact@v4
with:
name: "quantize-macos-arm64"
path: build/quantize*
linux-build:
name: "Build quantize on Linux for ${{ matrix.arch }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: true
matrix:
arch:
- "amd64"
- "arm64"
# - "ppc64le"
# - "s390x"
image:
- quay.io/sclorg/python-312-c8s:c8s
steps:
- uses: "actions/checkout@v4"
with:
submodules: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Pull ${{ matrix.image }} for linux/${{ matrix.arch }}
run: |
docker pull --platform linux/${{ matrix.arch }} ${{ matrix.image }}
- name: make build/quantize from llama.cpp sources
run: |
set -e
docker run --platform linux/${{ matrix.arch }} ${{ matrix.image }} uname -a
docker run --platform linux/${{ matrix.arch }} \
-v .:/opt/app-root/src \
-e CMAKE_ARGS="-DLLAMA_FATAL_WARNINGS=ON" \
${{ matrix.image }} \
make quantize
- name: file info
run: file build/quantize*
- uses: actions/upload-artifact@v4
with:
name: "quantize-linux-${{ matrix.arch }}"
path: build/quantize*
merge-artifacts:
name: Merge artifacts
runs-on: ubuntu-latest
needs:
- macos-build
- linux-build
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: quantize