Skip to content

Commit de225a5

Browse files
committed
Fix workflow indents
1 parent d5447c9 commit de225a5

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
name: llama_cpp_plugin_build_and_test
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
4+
pull_request:
5+
types:
6+
- opened
77
- reopened
88
- synchronize
99
paths:
10-
- 'modules/llama_cpp_plugin/**'
10+
- 'modules/llama_cpp_plugin/**'
1111

1212
jobs:
13-
build_ubuntu20:
14-
runs-on: ubuntu-20.04
13+
build_ubuntu20:
14+
runs-on: ubuntu-20.04
1515
steps:
16-
- name: Setup cmake
17-
uses: jwlawson/actions-setup-cmake@v1.14
18-
with:
19-
cmake-version: '3.24.x'
16+
- name: Setup cmake
17+
uses: jwlawson/actions-setup-cmake@v1.14
18+
with:
19+
cmake-version: '3.24.x'
2020

2121
- name: Checkout openvino_contrib
2222
uses: actions/checkout@v3
2323
with:
24-
submodules: recursive
25-
path: openvino_contrib
24+
submodules: recursive
25+
path: openvino_contrib
2626

2727
- name: Checkout openvino
2828
uses: actions/checkout@v3
2929
with:
30-
submodules: recursive
31-
repository: openvinotoolkit/openvino
32-
path: openvino
30+
submodules: recursive
31+
repository: openvinotoolkit/openvino
32+
path: openvino
3333

3434
- name: CMake - configure
35-
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DOPENVINO_EXTRA_MODULES=${{ github.workspace }}/openvino_contrib/modules/llama_cpp_plugin -DENABLE_TESTS=ON -DENABLE_FUNCTIONAL_TESTS=ON -DENABLE_PLUGINS_XML=ON -DENABLE_PLUGIN_REGISTRATION=ON openvino
35+
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DOPENVINO_EXTRA_MODULES=${{ github.workspace }}/openvino_contrib/modules/llama_cpp_plugin -DENABLE_TESTS=ON -DENABLE_FUNCTIONAL_TESTS=ON -DENABLE_PLUGINS_XML=ON -DENABLE_LLAMA_CPP_PLUGIN_REGISTRATION=ON openvino
3636

3737
- name: CMake - build
3838
run: cmake --build build -j`nproc` -- llama_cpp_plugin llama_cpp_e2e_tests
@@ -41,40 +41,40 @@ jobs:
4141
- name: Upload build artifacts
4242
uses: actions/upload-artifact@v4
4343
with:
44-
name: build_artifacts
45-
path: ${{ github.workspace }}/openvino/bin/intel64/Release/
44+
name: build_artifacts
45+
path: ${{ github.workspace }}/openvino/bin/intel64/Release/
4646

47-
test_ubuntu20:
47+
test_ubuntu20:
4848
needs: build_ubuntu20
4949
runs-on: ubuntu-20.04
5050
steps:
51-
- name: Download build artifacts
52-
uses: actions/download-artifact@v4
53-
with:
54-
name: build_artifacts
51+
- name: Download build artifacts
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: build_artifacts
5555
path: ${{ github.workspace }}/binaries
5656

5757
- name: Prepare test data - checkout llama.cpp repo
5858
uses: actions/checkout@v3
5959
with:
60-
repository: ggerganov/llama.cpp
61-
path: llama.cpp
60+
repository: ggerganov/llama.cpp
61+
path: llama.cpp
6262

6363
- name: Prepare test data - convert test model files
6464
run: |
65-
pip install -r llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
66-
huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
67-
mkdir -p ${{ github.workspace }}/test_data
68-
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
65+
pip install -r llama.cpp/requirements/requirements-convert-hf-to-gguf.txt
66+
huggingface-cli download gpt2 model.safetensors tokenizer.json tokenizer_config.json vocab.json config.json merges.txt --local-dir hf_gpt2
67+
mkdir -p ${{ github.workspace }}/test_data
68+
python3 llama.cpp/convert-hf-to-gguf.py hf_gpt2 --outtype f32 --outfile ${{ github.workspace }}/test_data/gpt2.gguf
6969
7070
- name: Install libtbb2
7171
run: |
72-
wget https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/oneapi-tbb-2021.2.4-lin.tgz
73-
mkdir -p tbb
74-
tar xvzf oneapi-tbb-2021.2.4-lin.tgz
72+
wget https://storage.openvinotoolkit.org/dependencies/thirdparty/linux/oneapi-tbb-2021.2.4-lin.tgz
73+
mkdir -p tbb
74+
tar xvzf oneapi-tbb-2021.2.4-lin.tgz
7575
7676
- name: Run E2E tests
7777
run: |
78-
chmod +x ${{ github.workspace }}/binaries/llama_cpp_e2e_tests
79-
export LD_LIBRARY_PATH=${{ github.workspace }}/binaries:${{ github.workspace }}/tbb/lib
80-
${{ github.workspace }}/binaries/llama_cpp_e2e_tests
78+
chmod +x ${{ github.workspace }}/binaries/llama_cpp_e2e_tests
79+
export LD_LIBRARY_PATH=${{ github.workspace }}/binaries:${{ github.workspace }}/tbb/lib
80+
${{ github.workspace }}/binaries/llama_cpp_e2e_tests

0 commit comments

Comments
 (0)