File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -49,24 +49,22 @@ jobs:
49
49
- name : CMake
50
50
run : |
51
51
. /opt/intel/oneapi/setvars.sh
52
- mkdir repo/build
53
- cd repo/build
54
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_C_FLAGS="-Ofast -xCORE-AVX2" -DCMAKE_CXX_FLAGS="-Ofast -xCORE-AVX2" -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON
55
- cmake --build . --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
56
- strip bin/server
52
+ cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_C_FLAGS="-Ofast -xCORE-AVX2" -DCMAKE_CXX_FLAGS="-Ofast -xCORE-AVX2" -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON
53
+ cmake --build build --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
54
+ strip build/bin/server
57
55
58
56
- name : Upload build artifact
59
57
uses : actions/upload-artifact@v4
60
58
with :
61
59
name : server-${{ matrix.ssl }}-oneapi
62
- path : repo/ build/bin/server
60
+ path : build/bin/server
63
61
if-no-files-found : error
64
62
65
63
- name : Build and push Docker image
66
64
uses : macbre/push-to-ghcr@v13
67
65
with :
68
66
dockerfile : .devops/server.Dockerfile
69
- context : repo/ build/bin
67
+ context : build/bin
70
68
image_name : ${{ github.repository }}
71
69
image_tag : server-${{ matrix.ssl }}-oneapi
72
70
github_token : ${{ secrets.GHCR_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change @@ -58,25 +58,23 @@ jobs:
58
58
59
59
- name : CMake
60
60
run : |
61
- mkdir repo/build
62
- cd repo/build
63
- cmake .. -DCMAKE_BUILD_TYPE=Release -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
64
- cmake --build . --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
65
- strip bin/server
61
+ cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
62
+ cmake --build build --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
63
+ strip build/bin/server
66
64
shell : alpine.sh {0}
67
65
68
66
- name : Upload build artifact
69
67
uses : actions/upload-artifact@v4
70
68
with :
71
69
name : server-${{ matrix.ssl }}-${{ matrix.avx }}
72
- path : repo/ build/bin/server
70
+ path : build/bin/server
73
71
if-no-files-found : error
74
72
75
73
- name : Build and push Docker image
76
74
uses : macbre/push-to-ghcr@v13
77
75
with :
78
76
dockerfile : .devops/server.Dockerfile
79
- context : repo/ build/bin
77
+ context : build/bin
80
78
image_name : ${{ github.repository }}
81
79
image_tag : server-${{ matrix.ssl }}-${{ matrix.avx }}
82
80
github_token : ${{ secrets.GHCR_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments