Skip to content

[llama-cpp] correct python3 path #814

[llama-cpp] correct python3 path

[llama-cpp] correct python3 path #814

Workflow file for this run

name: "Check"
on:
push:
branches-ignore:
- docs
- gh-pages
- experiment/*
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
VCPKG_ENABLE_METRICS: 0
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions"
jobs:
validate:
name: "Validate"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: "Run registry-format.ps1"
run: |
$env:VCPKG_ROOT="$env:VCPKG_INSTALLATION_ROOT"
$env:PATH="$env:VCPKG_ROOT:$env:PATH" # We are in Ubuntu!
scripts/registry-format.ps1 -VcpkgRoot "${env:VCPKG_ROOT}" -RegistryRoot ${{ github.workspace }}
shell: pwsh
- name: "Run git diff"
run: git diff --exit-code
overlay:
name: "Overlay"
runs-on: ${{ matrix.runner_image }} # https://github.com/actions/runner-images
needs: validate
strategy:
matrix:
include:
- runner_image: "ubuntu-24.04"
- runner_image: "macos-latest"
- runner_image: "windows-latest"
fail-fast: false
env:
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/checkout@v6
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- uses: lukka/run-vcpkg@v11.6
with:
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
vcpkgGitCommitId: "56bb2411609227288b70117ead2c47585ba07713" # 2026.04.27
runVcpkgInstall: false
- name: "Run apt"
if: runner.os == 'Linux'
run: |
sudo apt update -y
sudo apt install --fix-missing -y $(cat test/packages-apt.txt)
- name: "Run homebrew"
if: runner.os == 'macOS'
run: brew install autoconf automake libtool
- uses: microsoft/setup-msbuild@v3
if: runner.os == 'Windows'
with:
msbuild-architecture: x64
- name: "Enable LongPath"
if: runner.os == 'Windows'
continue-on-error: true
run: |
git config --system core.longpaths true
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
shell: pwsh
- name: "Run vcpkg(x64-osx)"
if: runner.os == 'macOS'
run: |
vcpkg install --keep-going \
--clean-packages-after-build --x-buildtrees-root buildtrees \
--x-manifest-root test --x-feature test
shell: bash
env:
VCPKG_DEFAULT_TRIPLET: "x64-osx"
- name: "Run vcpkg(arm64-ios)"
if: runner.os == 'macOS'
run: |
vcpkg install --keep-going \
--clean-packages-after-build --x-buildtrees-root buildtrees \
--x-manifest-root test --x-feature test
shell: bash
env:
VCPKG_DEFAULT_TRIPLET: "arm64-ios"
- name: "Run vcpkg(arm64-ios-simulator)"
if: runner.os == 'macOS'
run: |
vcpkg install --keep-going \
--clean-packages-after-build --x-buildtrees-root buildtrees \
--x-manifest-root test --x-feature test
shell: bash
env:
VCPKG_DEFAULT_TRIPLET: "arm64-ios-simulator"
continue-on-error: true
- name: "Run vcpkg(x64-linux)"
if: runner.os == 'Linux'
run: |
vcpkg install --keep-going \
--clean-packages-after-build --x-buildtrees-root buildtrees \
--x-manifest-root test --x-feature test
shell: bash
env:
VCPKG_DEFAULT_TRIPLET: "x64-linux"
- name: "Run vcpkg(x64-windows)"
if: runner.os == 'Windows'
run: |
vcpkg install --keep-going `
--clean-packages-after-build --x-buildtrees-root buildtrees `
--x-manifest-root test --x-feature test
shell: pwsh
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
- name: "Run vcpkg(arm64-windows)"
if: runner.os == 'Windows'
run: |
vcpkg install --keep-going `
--clean-packages-after-build --x-buildtrees-root buildtrees `
--x-manifest-root test --x-feature test
shell: pwsh
env:
VCPKG_DEFAULT_TRIPLET: "arm64-windows"
continue-on-error: true
- name: "Run vcpkg(host-tools)" # skip temporary
if: false
uses: lukka/run-vcpkg@v11.6
with:
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
vcpkgGitCommitId: "56bb2411609227288b70117ead2c47585ba07713" # 2026.04.27
runVcpkgInstall: true
runVcpkgFormatString: '[`install`, `--x-feature`, `host-tools`, `--clean-after-build`]'
vcpkgJsonGlob: "test/vcpkg.json"
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json"
- uses: actions/upload-artifact@v7.0.1
if: failure()
with:
name: log-${{ runner.os }}
path: |
buildtrees/*/*.txt
buildtrees/*/*.log
android:
name: "Android"
runs-on: "ubuntu-24.04" # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md#environment-variables-2
needs: validate
# container: # https://circleci.com/developer/images/image/cimg/android
# image: cimg/android:2025.01.1-ndk # 28.0.12674087
strategy:
matrix:
include:
- triplet: "arm64-android"
- triplet: "x64-android"
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- uses: lukka/run-vcpkg@v11.6
with:
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
vcpkgGitCommitId: "56bb2411609227288b70117ead2c47585ba07713" # 2026.04.27
runVcpkgInstall: false
# - uses: nttld/setup-ndk@v1.5.0
# with:
# ndk-version: 'r29' # https://github.com/android/ndk/releases
# local-cache: true
- name: "Run vcpkg(arm64-android)"
run: |
export ANDROID_NDK=$ANDROID_NDK_LATEST_HOME
export ANDROID_NDK_HOME=$ANDROID_NDK
export ANDROID_NDK_ROOT=$ANDROID_NDK
vcpkg install --keep-going \
--clean-after-build --x-buildtrees-root buildtrees \
--x-manifest-root test --x-feature test
shell: bash
env:
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
VCPKG_DEFAULT_TRIPLET: "${{ matrix.triplet }}"
- uses: actions/upload-artifact@v7.0.1
if: failure()
with:
name: log-${{ matrix.triplet }}
path: |
buildtrees/*/*.txt
buildtrees/*/*.log
emscripten:
name: "Emscripten"
runs-on: "ubuntu-24.04"
# needs: overlay
container:
image: "emscripten/emsdk:5.0.7" # https://hub.docker.com/r/emscripten/emsdk
env:
EMSDK_NODE: /emsdk/node/22.16.0_64bit/bin/node
EMCC_CFLAGS: "-mbulk-memory -matomics -pthread"
VCPKG_BINARY_SOURCES: "${{ secrets.VCPKG_BINARY_SOURCES }}"
steps:
- uses: actions/checkout@v6
- name: "Run apt"
run: |
sudo apt update -y
sudo apt install -y pkg-config python3-pip unzip
- name: "Install AWS CLI" # https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
aws --version
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: "Run git config"
run: |
git config --global --add safe.directory /__w/vcpkg-registry/vcpkg-registry
- name: "Change vcpkg.json"
run: mv test/test-emsdk.json test/vcpkg.json
- uses: lukka/run-vcpkg@v11.6
with:
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
vcpkgJsonGlob: "test/vcpkg.json"
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json"
runVcpkgFormatString: '[`install`, `--clean-after-build`]'
runVcpkgInstall: true
env:
VCPKG_DEFAULT_TRIPLET: "wasm32-emscripten"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"