From 10d17ae53129db7307bd8c5a5d23237acacc32b2 Mon Sep 17 00:00:00 2001 From: Alexey Korepanov Date: Wed, 10 Apr 2024 22:13:03 +0300 Subject: [PATCH] build update --- .github/workflows/build.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3cac8f..5db4b4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,17 +12,27 @@ jobs: 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 + + - name: Install Packages from requirements.txt run: pip install -r requirements.txt - - name: Saving model weights + + - name: Saving Model Weights run: python save_model_weights.py - - name: Creating build folder - run: mkdir build; cd build - - name: Cmake - run: cmake .. - - name: Make + + - 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: Try running model.cpp + + - name: Test model.cpp + working-directory: ./build run: ./model \ No newline at end of file