char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Ludovic Henryci: Bump ggml-org/ccache-action to v1.2.24 (#28083)234a6ebaa

char/aliceai-t5-moe
1.9 KiB70 linesraw
1name: CI (msys)
2
3on:
4  # only manual triggers due to low-importance of the workflows
5  # TODO: for regular runs, provision dedicated self-hosted runners
6  workflow_dispatch:
7  # run once every week
8  schedule:
9    - cron: '0 0 * * 0'
10
11concurrency:
12  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
13  cancel-in-progress: true
14
15env:
16  GGML_NLOOP: 3
17  GGML_N_THREADS: 1
18  LLAMA_ARG_LOG_COLORS: 1
19  LLAMA_ARG_LOG_PREFIX: 1
20  LLAMA_ARG_LOG_TIMESTAMPS: 1
21
22jobs:
23  windows-msys2:
24    runs-on: windows-2025
25
26    strategy:
27      fail-fast: false
28      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: Clone
35        uses: actions/checkout@v6
36
37      #- name: ccache
38      #  uses: ggml-org/ccache-action@v1.2.24
39      #  with:
40      #    key: msys-windows-2025-x64
41      #    variant: ccache
42      #    evict-old-files: 1d
43      #    save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
44
45      - name: Setup ${{ matrix.sys }}
46        uses: msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2
47        with:
48          update: true
49          msystem: ${{matrix.sys}}
50          install: >-
51            mingw-w64-${{matrix.env}}-${{matrix.compiler}}
52            mingw-w64-${{matrix.env}}-cmake
53            mingw-w64-${{matrix.env}}-openblas
54
55      - name: Build using CMake
56        shell: msys2 {0}
57        run: |
58            cmake -B build
59            cmake --build build --config ${{ matrix.build }} -j $(nproc)
60
61      - name: Clean after building using CMake
62        shell: msys2 {0}
63        run: |
64            rm -rf build
65
66      - name: Build using CMake w/ OpenBLAS
67        shell: msys2 {0}
68        run: |
69            cmake -B build -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
70            cmake --build build --config ${{ matrix.build }} -j $(nproc)