echodict/llama.cpp
version https://git-lfs.github.com/spec/v1 oid sha256:cfc44b7ba25614df70e6b65e3341cae0310163bd32fd31a6b928a542df433faf size 30786
0773
1name: CI (msys)2 3on:4 # only manual triggers due to low-importance of the workflows5 # TODO: for regular runs, provision dedicated self-hosted runners6 workflow_dispatch:7 # run once every week8 schedule:9 - cron: '0 0 * * 0'10 11concurrency:12 group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}13 cancel-in-progress: true14 15env:16 GGML_NLOOP: 317 GGML_N_THREADS: 118 LLAMA_LOG_COLORS: 119 LLAMA_LOG_PREFIX: 120 LLAMA_LOG_TIMESTAMPS: 121 22jobs:23 windows-msys2:24 runs-on: windows-202525 26 strategy:27 fail-fast: false28 matrix:29 include:30 - { sys: UCRT64, env: ucrt-x86_64, build: Release }31 - { sys: CLANG64, env: clang-x86_64, build: Release }32 33 steps:34 - name: Clone35 uses: actions/checkout@v636 37 #- name: ccache38 # uses: ggml-org/ccache-action@v1.2.1639 # with:40 # key: windows-msys241 # variant: ccache42 # evict-old-files: 1d43 # save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}44 45 - name: Setup ${{ matrix.sys }}46 uses: msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v247 with:48 update: true49 msystem: ${{matrix.sys}}50 install: >-51 base-devel52 git53 mingw-w64-${{matrix.env}}-toolchain54 mingw-w64-${{matrix.env}}-cmake55 mingw-w64-${{matrix.env}}-openblas56 57 - name: Build using CMake58 shell: msys2 {0}59 run: |60 cmake -B build61 cmake --build build --config ${{ matrix.build }} -j $(nproc)62 63 - name: Clean after building using CMake64 shell: msys2 {0}65 run: |66 rm -rf build67 68 - name: Build using CMake w/ OpenBLAS69 shell: msys2 {0}70 run: |71 cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS72 cmake --build build --config ${{ matrix.build }} -j $(nproc)73 