@@ -55,21 +55,7 @@ concurrency:
5555
5656jobs :
5757 ubuntu :
58- runs-on : ubuntu-24.04
59-
60- name : ubuntu (${{ matrix.wf_name }})
61- strategy :
62- matrix :
63- build_type : [Release]
64- wf_name : ["default"]
65- include :
66- - build_type : Release
67- extra_args : " "
68- wf_name : " default"
69- - build_type : Release
70- extra_args : " LLAMA_ARG_BACKEND_SAMPLING=1"
71- wf_name : " backend-sampling"
72- fail-fast : false
58+ runs-on : ubuntu-24.04-arm
7359
7460 steps :
7561 - name : Dependencies
9682 - name : ccache
9783 uses : ggml-org/ccache-action@v1.2.21
9884 with :
99- key : server-ubuntu-24.04-x64
85+ key : server-ubuntu-24.04-arm
10086 evict-old-files : 1d
10187 save : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
10288
10591 run : |
10692 cmake -B build \
10793 -DGGML_SCHED_NO_REALLOC=ON
108- cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
94+ cmake --build build --config Release -j $(nproc) --target llama-server
10995
11096 - name : Python setup
11197 id : setup_python
@@ -116,18 +102,32 @@ jobs:
116102
117103 - name : Tests
118104 id : server_integration_tests
119- if : ${{ (!matrix.disabled_on_pr || ! github.event.pull_request) }}
105+ if : ${{ ! github.event.pull_request }}
120106 run : |
121107 cd tools/server/tests
122- export ${{ matrix.extra_args }}
123108 pytest -v -x -m "not slow"
124109
125110 - name : Slow tests
126111 id : server_integration_tests_slow
127- if : ${{ ( github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release ' }}
112+ if : ${{ github.event.schedule || github.event.inputs.slow_tests == 'true' }}
128113 run : |
129114 cd tools/server/tests
130- export ${{ matrix.extra_args }}
115+ SLOW_TESTS=1 pytest -v -x
116+
117+ - name : Tests (Backend sampling)
118+ id : server_integration_tests_backend_sampling
119+ if : ${{ !github.event.pull_request }}
120+ run : |
121+ cd tools/server/tests
122+ export LLAMA_ARG_BACKEND_SAMPLING=1
123+ pytest -v -x -m "not slow"
124+
125+ - name : Slow tests (Backend sampling)
126+ id : server_integration_tests_slow_backend_sampling
127+ if : ${{ github.event.schedule || github.event.inputs.slow_tests == 'true' }}
128+ run : |
129+ cd tools/server/tests
130+ export LLAMA_ARG_BACKEND_SAMPLING=1
131131 SLOW_TESTS=1 pytest -v -x
132132
133133 windows :
@@ -169,15 +169,15 @@ jobs:
169169
170170 - name : Tests
171171 id : server_integration_tests
172- if : ${{ !matrix.disabled_on_pr || ! github.event.pull_request }}
172+ if : ${{ !github.event.pull_request }}
173173 run : |
174174 cd tools/server/tests
175175 $env:PYTHONIOENCODING = ":replace"
176176 pytest -v -x -m "not slow"
177177
178178 - name : Slow tests
179179 id : server_integration_tests_slow
180- if : ${{ ( github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release ' }}
180+ if : ${{ github.event.schedule || github.event.inputs.slow_tests == 'true' }}
181181 run : |
182182 cd tools/server/tests
183183 $env:SLOW_TESTS = "1"
0 commit comments