fix: cicd #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
jobs: | |
ubuntu-amd64-build: | |
runs-on: ubuntu-18-04-cuda-12-0 | |
timeout-minutes: 40 | |
strategy: | |
matrix: | |
include: | |
# - build: "amd64-avx2" | |
# defines: "-DLLAMA_NATIVE=OFF" | |
# - build: "amd64-avx" | |
# defines: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF" | |
# - build: "amd64-avx512" | |
# defines: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF" | |
- build: "amd64-vulkan" | |
defines: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF" | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Prepare Vulkan SDK | |
if: ${{ matrix.build == 'amd64-vulkan' }} | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
with: | |
vulkan-query-version: 1.3.275.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Build | |
run: | | |
cmake -S ./third-party -B ./build_deps/third-party | |
make -C ./build_deps/third-party -j 10 | |
rm -rf ./build_deps/third-party | |
make build CMAKE_EXTRA_FLAGS="${{ matrix.defines }}" | |
macOS-silicon-build: | |
runs-on: mac-silicon | |
timeout-minutes: 40 | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
cmake -S ./third-party -B ./build_deps/third-party | |
make -C ./build_deps/third-party -j 10 | |
rm -rf ./build_deps/third-party | |
make build | |
ls -la | |
macOS-amd64-build: | |
runs-on: macos-13 | |
timeout-minutes: 40 | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build | |
id: cmake_build | |
run: | | |
cmake -S ./third-party -B ./build_deps/third-party | |
make -C ./build_deps/third-party -j 10 | |
rm -rf ./build_deps/third-party | |
make build | |
ls -la | |
windows-amd64-build: | |
runs-on: windows-latest | |
timeout-minutes: 40 | |
strategy: | |
matrix: | |
include: | |
- build: "amd64-avx2" | |
defines: "-DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE" | |
# - build: "amd64-avx" | |
# defines: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE" | |
# - build: "amd64-avx512" | |
# defines: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DLLAMA_BLAS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE" | |
# - build: "amd64-vulkan" | |
# defines: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF -DLLAMA_BUILD_SERVER=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RELEASE" | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: install make-gnu | |
run: | | |
choco install make -y | |
- name: Prepare Vulkan SDK | |
uses: humbletim/setup-vulkan-sdk@v1.2.0 | |
if: ${{ matrix.build == 'amd64-vulkan' }} | |
with: | |
vulkan-query-version: 1.3.275.0 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Build | |
run: | | |
cmake -S ./third-party -B ./build_deps/third-party | |
cmake --build ./build_deps/third-party --config Release | |
make build CMAKE_EXTRA_FLAGS="${{ matrix.defines }}" |