Felipe97/llama-cpp-compiled
01.2k
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_ARG_LOG_COLORS: 119 LLAMA_ARG_LOG_PREFIX: 120 LLAMA_ARG_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, compiler: gcc, build: Release }31 - { sys: CLANG64, env: clang-x86_64, compiler: clang, build: Release }32 33 steps:34 - name: Clone35 uses: actions/checkout@v636 37 #- name: ccache38 # uses: ggml-org/ccache-action@v1.2.2439 # with:40 # key: msys-windows-2025-x6441 # 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 mingw-w64-${{matrix.env}}-${{matrix.compiler}}52 mingw-w64-${{matrix.env}}-cmake53 mingw-w64-${{matrix.env}}-openblas54 55 - name: Build using CMake56 shell: msys2 {0}57 run: |58 cmake -B build59 cmake --build build --config ${{ matrix.build }} -j $(nproc)60 61 - name: Clean after building using CMake62 shell: msys2 {0}63 run: |64 rm -rf build65 66 - name: Build using CMake w/ OpenBLAS67 shell: msys2 {0}68 run: |69 cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS70 cmake --build build --config ${{ matrix.build }} -j $(nproc)71 