Skip to content

Commit 482c591

Browse files
committed
Added ccache
1 parent 767c0ad commit 482c591

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

.github/workflows/build-riscv-native.yml

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,58 @@
11
name: Build on RISCV Linux Machine by Cloud-V
2+
23
on:
4+
workflow_dispatch: # allows manual triggering
5+
push:
6+
branches:
7+
- master
8+
paths: [
9+
'.github/workflows/build.yml',
10+
'.github/workflows/build-linux-cross.yml',
11+
'.github/workflows/build-cmake-pkg.yml',
12+
'**/CMakeLists.txt',
13+
'**/.cmake',
14+
'**/*.h',
15+
'**/*.hpp',
16+
'**/*.c',
17+
'**/*.cpp',
18+
'**/*.cu',
19+
'**/*.cuh',
20+
'**/*.swift',
21+
'**/*.m',
22+
'**/*.metal',
23+
'**/*.comp'
24+
]
25+
326
pull_request:
4-
workflow_dispatch:
5-
workflow_call:
27+
types: [opened, synchronize, reopened]
28+
paths: [
29+
'.github/workflows/build.yml',
30+
'.github/workflows/build-linux-cross.yml',
31+
'.github/workflows/build-cmake-pkg.yml',
32+
'**/CMakeLists.txt',
33+
'**/.cmake',
34+
'**/*.h',
35+
'**/*.hpp',
36+
'**/*.c',
37+
'**/*.cpp',
38+
'**/*.cu',
39+
'**/*.cuh',
40+
'**/*.swift',
41+
'**/*.m',
42+
'**/*.metal',
43+
'**/*.comp'
44+
]
45+
46+
concurrency:
47+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
48+
cancel-in-progress: true
49+
50+
env:
51+
GGML_NLOOP: 3
52+
GGML_N_THREADS: 1
53+
LLAMA_LOG_COLORS: 1
54+
LLAMA_LOG_PREFIX: 1
55+
LLAMA_LOG_TIMESTAMPS: 1
656

757
jobs:
858
debian-13-riscv64-native: # Bianbu 2.2
@@ -21,6 +71,7 @@ jobs:
2171
build-essential \
2272
gcc-14-riscv64-linux-gnu \
2373
g++-14-riscv64-linux-gnu \
74+
ccache \
2475
cmake
2576
2677
- name: Build

0 commit comments

Comments
 (0)