ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / .github / workflows / release.yml
| 1 | name: release |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ master ] |
| 6 | paths: |
| 7 | - '.github/workflows/release.yml' |
| 8 | - 'CMakeLists.txt' |
| 9 | - 'cmake/**' |
| 10 | - 'ci/**' |
| 11 | - 'examples/**' |
| 12 | - 'ggml.pc.in' |
| 13 | - 'include/**' |
| 14 | - 'requirements.txt' |
| 15 | - 'src/**' |
| 16 | - 'tests/**' |
| 17 | pull_request: |
| 18 | branches: [ master ] |
| 19 | paths: |
| 20 | - '.github/workflows/release.yml' |
| 21 | - 'CMakeLists.txt' |
| 22 | - 'cmake/**' |
| 23 | - 'ci/**' |
| 24 | - 'examples/**' |
| 25 | - 'ggml.pc.in' |
| 26 | - 'include/**' |
| 27 | - 'requirements.txt' |
| 28 | - 'src/**' |
| 29 | - 'tests/**' |
| 30 | |
| 31 | concurrency: |
| 32 | group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} |
| 33 | cancel-in-progress: true |
| 34 | |
| 35 | jobs: |
| 36 | build: |
| 37 | strategy: |
| 38 | matrix: |
| 39 | os: [ubuntu-latest, macos-latest, windows-latest] |
| 40 | libraries: [shared, static] |
| 41 | |
| 42 | runs-on: ${{ matrix.os }} |
| 43 | |
| 44 | steps: |
| 45 | - name: Clone |
| 46 | uses: actions/checkout@v6 |
| 47 | |
| 48 | - name: Dependencies for Ubuntu |
| 49 | if: matrix.os == 'ubuntu-latest' |
| 50 | run: | |
| 51 | sudo apt-get update |
| 52 | sudo apt-get install llvm |
| 53 | |
| 54 | - name: Add msbuild to PATH |
| 55 | if: matrix.os == 'windows-latest' |
| 56 | uses: microsoft/setup-msbuild@v2 |
| 57 | |
| 58 | - name: Create Build Environment |
| 59 | run: mkdir build |
| 60 | |
| 61 | - name: Configure CMake |
| 62 | working-directory: ./build |
| 63 | run: cmake .. |
| 64 | ${{ contains(matrix.os, 'windows') && '-A x64' || '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++' }} |
| 65 | ${{ matrix.libraries == 'static' && '-DBUILD_SHARED_LIBS=OFF' || '-DBUILD_SHARED_LIBS=ON' }} |
| 66 | -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/installed |
| 67 | -DGGML_METAL=OFF |
| 68 | |
| 69 | - name: Build |
| 70 | working-directory: ./build |
| 71 | run: cmake --build . ${{ contains(matrix.os, 'windows') && '--config Release' || '' }} |
| 72 | |
| 73 | - name: Test |
| 74 | working-directory: ./build |
| 75 | run: ctest --verbose --timeout 900 ${{ contains(matrix.os, 'windows') && '--build-config Release' || '' }} |
| 76 | |
| 77 | - name: Install |
| 78 | working-directory: ./build |
| 79 | run: cmake --build . --target install ${{ contains(matrix.os, 'windows') && '--config Release' || '' }} |
| 80 | |
| 81 | - name: Test CMake config |
| 82 | run: | |
| 83 | mkdir test-cmake |
| 84 | cmake -S examples/test-cmake -B test-cmake -DCMAKE_PREFIX_PATH=${{ github.workspace }}/installed ${{ contains(matrix.os, 'windows') && '-A x64' || '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++' }} |
| 85 | cmake --build test-cmake ${{ contains(matrix.os, 'windows') && '--config Release' || '' }} |