Skip to content

CI/CD on Ubuntu

CI/CD on Ubuntu #1

Workflow file for this run

name: cicd-ubuntu
on:
workflow_dispatch:
push:
paths:
- "scripts/**"
- "native/**"
- "src/**"
- "test/**"
- "Makefile"
- ".github/trigger.txt"
- ".github/workflows/cicd.yml"
jobs:
all-ubuntu:
name: all-ubuntu
strategy:
matrix:
python-version: [3.8, 3.11]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
# https://github.com/marketplace/actions/setup-miniconda
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
# -------------------------------------------------------------------
# Checkout llama_cpp_canister & llama_cpp_onicai_fork as nested directory
- name: checkout llama_cpp_canister
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: checkout llama_cpp_onicai_fork
uses: actions/checkout@v4
with:
repository: onicai/llama_cpp_onicai_fork
path: src/llama_cpp_onicai_fork
fetch-depth: 0
submodules: 'recursive'
# -------------------------------------------------------------------
- name: install
shell: bash -l {0} # activates the default conda environment ('test')
run: |
echo "Installing tool chains & dependencies"
pwd
sudo apt-get update
sudo apt-get install build-essential
make summary
make install-dfx
make install-python
make install-clang-ubuntu
make install-jp
- name: versions
shell: bash -l {0}
run: |
echo "icpp --version: $(icpp --version)"
echo "clang++ --version: $(clang++ --version)"
echo "g++ --version: $(g++ --version)"
echo "pip version : $(pip --version)"
echo "python version : $(python --version)"
echo "jp version : $(jp --version)"
echo "dfx version : $(dfx --version)"
echo "Ensure conda works properly"
conda info
which pip
which python
which icpp
- name: all-tests
shell: bash -l {0}
run: |
make all-tests