Skip to content

feat: use llama.cpp 0a11f8b7b5c39fdf6e91ef9674bc68ff08681af7 #6

feat: use llama.cpp 0a11f8b7b5c39fdf6e91ef9674bc68ff08681af7

feat: use llama.cpp 0a11f8b7b5c39fdf6e91ef9674bc68ff08681af7 #6

Workflow file for this run

name: Release build
on:
push:
workflow_call:
inputs:
upload-artifacts:
type: boolean
default: false
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64
- uses: actions/[email protected]
with:
node-version: 20
cache: 'yarn'
- name: node_modules cache
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: externals cache
uses: actions/[email protected]
if: runner.os != 'Windows'
with:
path: externals
key: ${{ runner.os }}-externals-${{ hashFiles('scripts/prepare-*.sh') }}
- name: externals cache (Windows)
uses: actions/[email protected]
if: runner.os == 'Windows'
with:
path: externals
key: ${{ runner.os }}-externals-${{ hashFiles('scripts/prepare-*.ps1') }}
- name: Install dependencies
run: yarn install
- uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
- name: Prepare & build (Windows)
if: runner.os == 'Windows'
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
powershell ./scripts/prepare-windows.ps1
powershell ./scripts/build-windows.ps1
- name: Prepare & build (Linux x86_64)
if: runner.os == 'Linux'
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
bash ./scripts/prepare-linux.sh
bash ./scripts/build-linux.sh
- name: Prepare & build (Linux arm64)
if: runner.os == 'Linux'
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
docker run --rm \
-e CMAKE_BUILD_PARALLEL_LEVEL=${{ env.CMAKE_BUILD_PARALLEL_LEVEL }} \
-v $(pwd):/${{ github.workspace }} \
-w /${{ github.workspace }} \
--platform linux/arm64 \
arm64v8/ubuntu:latest \
bash -c "./scripts/prepare-linux.sh && ./scripts/build-linux.sh"
- name: Build (macOS)
if: runner.os == 'macOS'
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: bash ./scripts/build-macos.sh
- name: Upload build artifacts
if: inputs.upload-artifacts == 'true'
uses: actions/upload-artifact@v4
with:
name: bin-${{ matrix.os }}
path: bin
retention-days: 3