From 4bb03cade0db5b9010c3c5537cb4aaeed674afd8 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 10 Jun 2024 12:30:18 +0300 Subject: [PATCH] ci : disable server-windows workflow --- .github/workflows/server.yml | 113 ++++++++++++++++++----------------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 0789efd18..69f4bf742 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -113,59 +113,60 @@ jobs: cd examples/server/tests PORT=8888 ./tests.sh --stop --no-skipped --no-capture --tags slow - - server-windows: - runs-on: windows-latest - - steps: - - name: Clone - id: checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }} - - - name: libCURL - id: get_libcurl - env: - CURL_VERSION: 8.6.0_6 - run: | - curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64-mingw.zip" - mkdir $env:RUNNER_TEMP/libcurl - tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl - - - name: Build - id: cmake_build - run: | - cmake -B build -DLLAMA_CURL=ON -DCURL_LIBRARY="$env:RUNNER_TEMP/libcurl/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:RUNNER_TEMP/libcurl/include" - cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS} --target server - - - name: Python setup - id: setup_python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Tests dependencies - id: test_dependencies - run: | - pip install -r examples/server/tests/requirements.txt - - - name: Copy Libcurl - id: prepare_libcurl - run: | - cp $env:RUNNER_TEMP/libcurl/bin/libcurl-x64.dll ./build/bin/Release/libcurl-x64.dll - - - name: Tests - id: server_integration_tests - if: ${{ !matrix.disabled_on_pr || !github.event.pull_request }} - run: | - cd examples/server/tests - behave.exe --summary --stop --no-capture --exclude 'issues|wrong_usages|passkey' --tags llama.cpp - - - name: Slow tests - id: server_integration_tests_slow - if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }} - run: | - cd examples/server/tests - behave.exe --stop --no-skipped --no-capture --tags slow +# note : stopped working on windows for some reason +# https://github.com/ggerganov/llama.cpp/actions/runs/9375600457/job/25813996327#step:8:96 +# server-windows: +# runs-on: windows-latest +# +# steps: +# - name: Clone +# id: checkout +# uses: actions/checkout@v4 +# with: +# fetch-depth: 0 +# ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }} +# +# - name: libCURL +# id: get_libcurl +# env: +# CURL_VERSION: 8.6.0_6 +# run: | +# curl.exe -o $env:RUNNER_TEMP/curl.zip -L "https://curl.se/windows/dl-${env:CURL_VERSION}/curl-${env:CURL_VERSION}-win64-mingw.zip" +# mkdir $env:RUNNER_TEMP/libcurl +# tar.exe -xvf $env:RUNNER_TEMP/curl.zip --strip-components=1 -C $env:RUNNER_TEMP/libcurl +# +# - name: Build +# id: cmake_build +# run: | +# cmake -B build -DLLAMA_CURL=ON -DCURL_LIBRARY="$env:RUNNER_TEMP/libcurl/lib/libcurl.dll.a" -DCURL_INCLUDE_DIR="$env:RUNNER_TEMP/libcurl/include" +# cmake --build build --config Release -j ${env:NUMBER_OF_PROCESSORS} --target server +# +# - name: Python setup +# id: setup_python +# uses: actions/setup-python@v5 +# with: +# python-version: '3.11' +# +# - name: Tests dependencies +# id: test_dependencies +# run: | +# pip install -r examples/server/tests/requirements.txt +# +# - name: Copy Libcurl +# id: prepare_libcurl +# run: | +# cp $env:RUNNER_TEMP/libcurl/bin/libcurl-x64.dll ./build/bin/Release/libcurl-x64.dll +# +# - name: Tests +# id: server_integration_tests +# if: ${{ !matrix.disabled_on_pr || !github.event.pull_request }} +# run: | +# cd examples/server/tests +# behave.exe --summary --stop --no-capture --exclude 'issues|wrong_usages|passkey' --tags llama.cpp +# +# - name: Slow tests +# id: server_integration_tests_slow +# if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }} +# run: | +# cd examples/server/tests +# behave.exe --stop --no-skipped --no-capture --tags slow