|
26 | 26 | strategy:
|
27 | 27 | matrix:
|
28 | 28 | config:
|
29 |
| - - { tag: "light", dockerfile: ".devops/main.Dockerfile" } |
30 |
| - - { tag: "full", dockerfile: ".devops/full.Dockerfile" } |
| 29 | + - { tag: "light", dockerfile: ".devops/main.Dockerfile", platforms: "linux/amd64,linux/arm64" } |
| 30 | + - { tag: "full", dockerfile: ".devops/full.Dockerfile", platforms: "linux/amd64,linux/arm64" } |
| 31 | + # NOTE(canardletter): The CUDA builds on arm64 are very slow, so I |
| 32 | + # have disabled them for now until the reason why |
| 33 | + # is understood. |
| 34 | + - { tag: "light-cuda", dockerfile: ".devops/main-cuda.Dockerfile", platforms: "linux/amd64" } |
| 35 | + - { tag: "full-cuda", dockerfile: ".devops/full-cuda.Dockerfile", platforms: "linux/amd64" } |
| 36 | + - { tag: "light-rocm", dockerfile: ".devops/main-rocm.Dockerfile", platforms: "linux/amd64,linux/arm64" } |
| 37 | + - { tag: "full-rocm", dockerfile: ".devops/full-rocm.Dockerfile", platforms: "linux/amd64,linux/arm64" } |
31 | 38 | steps:
|
32 | 39 | - name: Check out the repo
|
33 | 40 | uses: actions/checkout@v3
|
|
51 | 58 | with:
|
52 | 59 | context: .
|
53 | 60 | push: true
|
54 |
| - platforms: linux/amd64,linux/arm64 |
| 61 | + platforms: ${{ matrix.config.platforms }} |
55 | 62 | tags: "ghcr.io/ggerganov/llama.cpp:${{ matrix.config.tag }}-${{ env.COMMIT_SHA }}"
|
56 | 63 | file: ${{ matrix.config.dockerfile }}
|
57 | 64 |
|
|
60 | 67 | with:
|
61 | 68 | context: .
|
62 | 69 | push: ${{ github.event_name == 'push' }}
|
63 |
| - platforms: linux/amd64,linux/arm64 |
| 70 | + platforms: ${{ matrix.config.platforms }} |
64 | 71 | tags: "ghcr.io/ggerganov/llama.cpp:${{ matrix.config.tag }}"
|
65 | 72 | file: ${{ matrix.config.dockerfile }}
|
0 commit comments