Skip to content

Commit 3d74459

Browse files
committed
feat(workflow): add ARM64 build configurations and improve dependency installation conditions
1 parent 08e69bf commit 3d74459

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,28 @@ jobs:
4545
name: linux-opencl
4646
make: LLAMA="-DGGML_NATIVE=ON -DGGML_OPENCL=ON"
4747

48+
# Linux ARM64 builds
49+
- os: LinuxARM64
50+
arch: arm64
51+
name: linux-arm64-cpu
52+
make: LLAMA="-DGGML_NATIVE=ON"
53+
- os: LinuxARM64
54+
arch: arm64
55+
name: linux-arm64-neon
56+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8.2-a"
57+
- os: LinuxARM64
58+
arch: arm64
59+
name: linux-arm64-openblas
60+
make: LLAMA="-DGGML_NATIVE=ON -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"
61+
- os: LinuxARM64
62+
arch: arm64
63+
name: linux-arm64-vulkan
64+
make: LLAMA="-DGGML_NATIVE=OFF -DGGML_VULKAN=ON"
65+
- os: LinuxARM64
66+
arch: arm64
67+
name: linux-arm64-opencl
68+
make: LLAMA="-DGGML_NATIVE=ON -DGGML_OPENCL=ON"
69+
4870
# macOS builds
4971
- os: macos-latest
5072
name: macos-cpu
@@ -114,17 +136,17 @@ jobs:
114136
sudo apt-get install -y build-essential wget git cmake sqlite3 libcurl4-openssl-dev
115137
116138
- name: linux install openblas
117-
if: matrix.name == 'linux-openblas'
139+
if: contains(matrix.name, 'openblas')
118140
run: |
119141
sudo apt-get install -y libopenblas-dev
120142
121143
- name: linux install opencl
122-
if: matrix.name == 'linux-opencl'
144+
if: contains(matrix.name, 'opencl')
123145
run: |
124146
sudo apt-get install -y opencl-headers ocl-icd-opencl-dev
125147
126148
- name: linux install vulkan
127-
if: matrix.name == 'linux-vulkan'
149+
if: contains(matrix.name, 'vulkan')
128150
run: |
129151
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
130152
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list

0 commit comments

Comments
 (0)