-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 959 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest]
python-version: ["3.8"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Clone ggerganov/ggml
run: git clone https://github.com/ggerganov/ggml.git
- name: Install Packages from requirements.txt
run: pip install -r weights_export/requirements.txt
- name: Saving Model Weights
run: python weights_export/export_model_weights.py
- name: Create Build Environment
run: mkdir build
- name: Configure CMake
working-directory: ./build
run: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGGML_TEST_COVERAGE=ON -DGGML_CLBLAST=ON ..
- name: Build
working-directory: ./build
run: make
- name: Test
working-directory: ./build
run: ./template