-
Notifications
You must be signed in to change notification settings - Fork 51
61 lines (57 loc) · 1.48 KB
/
llama-cpp-rs-check.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Llama Cpp Rs Check
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
changes:
name: Changes
runs-on: ${{ vars.CHECKS_RUNNER }}
outputs:
llama-cpp-rs: ${{ steps.filter.outputs.llama-cpp-rs }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
llama-cpp-rs:
- 'llama-cpp-rs/**'
check:
name: Run Tests on LLama Cpp Rs
runs-on: ${{ vars.RUNNER }}
defaults:
run:
working-directory: ./llama-cpp-rs
needs:
- changes
if: ${{ needs.changes.outputs.llama-cpp-rs == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Compile Deps
env:
DEBIAN_FRONTEND: noninteractive
run:
sudo apt-get update && sudo apt-get install -y build-essential curl libssl-dev libclang-dev pkg-config cmake git
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Clippy
run: cargo clippy
- name: Clippy
run: cargo fmt