Skip to content

feat: first commit

feat: first commit #1

Workflow file for this run

name: ci
permissions:
contents: read
pull-requests: read
actions: read
env:
VERSION: "${{ github.ref_name }}"
on:
workflow_dispatch: { }
push:
tags:
- "v*.*.*"
branches:
- main
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
darwin-arm64:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deps
continue-on-error: true
run: |
brew update
- name: Build
run: |
make -j LLAMA_METAL=1
- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
path: ./.dist/llama-box
name: llama-box-darwin-arm64
darwin-amd64:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Deps
continue-on-error: true
run: |
brew update
- name: Build
run: |
make -j LLAMA_METAL=1
- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
path: ./.dist/llama-box
name: llama-box-darwin-amd64
linux-hip:
runs-on: ubuntu-22.04
strategy:
matrix:
arch:
- amd64
version:
- '6.0.2'
steps:
- name: Clone
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v7.0.0
platforms: "arm64"
- name: Build
run: |
docker run \
--rm \
--privileged \
--platform linux/${{ matrix.arch }} \
--volume $(pwd):/workspace \
--workdir /workspace \
--env CC=/opt/rocm/llvm/bin/clang \
--env CXX=/opt/rocm/llvm/bin/clang++ \
rocm/dev-ubuntu-22.04:${{ matrix.version }}-complete \
make -j LLAMA_HIPBLAS=1
- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
path: ./.dist/llama-box
name: llama-box-linux-${{ matrix.arch }}-hip