Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 17b4d5e

Browse files
committed
feat(ci): Ađ mac intel and linux no cuda build
1 parent 5b59529 commit 17b4d5e

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.github/workflows/build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch: # allows manual triggering
5+
inputs:
6+
create_release:
7+
description: 'Create new release'
8+
required: true
9+
type: boolean
10+
push:
11+
branches:
12+
- master
13+
- 35-add-github-action-for-nitro-build
14+
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu']
15+
pull_request:
16+
types: [opened, synchronize, reopened]
17+
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu']
18+
19+
env:
20+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
21+
GGML_NLOOP: 3
22+
GGML_N_THREADS: 1
23+
24+
jobs:
25+
ubuntu-focal-make:
26+
runs-on: ubuntu-20.04
27+
28+
steps:
29+
- name: Clone
30+
id: checkout
31+
uses: actions/checkout@v3
32+
33+
- name: Dependencies
34+
id: depends
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install build-essential gcc-8
38+
39+
- name: Build
40+
id: make_build
41+
run: |
42+
mkdir build && cd build
43+
cmake ..
44+
CC=gcc-8 make -j $(nproc)
45+
ls -la
46+
47+
macOS-latest-cmake:
48+
runs-on: macos-latest
49+
50+
steps:
51+
- name: Clone
52+
id: checkout
53+
uses: actions/checkout@v3
54+
55+
- name: Dependencies
56+
id: depends
57+
continue-on-error: true
58+
run: |
59+
brew update
60+
61+
- name: Build
62+
id: cmake_build
63+
run: |
64+
mkdir build && cd build
65+
cmake -DLLAMA_METAL=OFF ..
66+
CC=gcc-8 make -j $(nproc)
67+
ls -la

0 commit comments

Comments
 (0)