forked from wylab/llama.cpp
Build Actions Cache / ubuntu-24-vulkan-cache (push) Has been cancelled
Build Actions Cache / ubuntu-24-openvino-cache (push) Has been cancelled
Build Actions Cache / windows-2022-rocm-cache (push) Has been cancelled
Build ROCm Server Image / build-rocm-server (push) Failing after 1h18m41s
Close inactive issues / close-issues (push) Has been cancelled
Publish Docker image / Create and push git tag (push) Has been cancelled
Publish Docker image / Prepare Docker matrices (push) Has been cancelled
Publish Docker image / Push Docker image to Docker Registry (push) Has been cancelled
Publish Docker image / Create shared tags from digests (push) Has been cancelled
EditorConfig Checker / editorconfig (push) Has been cancelled
CI (msys) / windows-msys2 (Release, clang-x86_64, CLANG64) (push) Has been cancelled
CI (msys) / windows-msys2 (Release, ucrt-x86_64, UCRT64) (push) Has been cancelled
CI (cross) / debian-13-loongarch64-cpu-cross (push) Has been cancelled
CI (cross) / debian-13-loongarch64-vulkan-cross (push) Has been cancelled
CI (cross) / ubuntu-24-riscv64-cpu-spacemit-ime-cross (push) Has been cancelled
Update Winget Package / Update Winget Package (push) Has been skipped
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Build ROCm Server Image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.devops/rocm.Dockerfile'
|
|
- '.github/workflows/build-rocm.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
build-rocm-server:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Determine build tag
|
|
id: tag
|
|
run: |
|
|
# Use short commit hash as build number (matches upstream bXXXX convention)
|
|
BUILD_NUM="b$(git rev-list --count HEAD)"
|
|
echo "build_num=${BUILD_NUM}" >> $GITHUB_OUTPUT
|
|
echo "Build number: ${BUILD_NUM}"
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.wylab.me -u wylab --password-stdin
|
|
|
|
- name: Build server-rocm image
|
|
run: |
|
|
docker build \
|
|
--target server \
|
|
--build-arg ROCM_DOCKER_ARCH='gfx1100;gfx1101;gfx1102' \
|
|
-f .devops/rocm.Dockerfile \
|
|
-t git.wylab.me/wylab/llama.cpp:server-rocm-${{ steps.tag.outputs.build_num }} \
|
|
-t git.wylab.me/wylab/llama.cpp:server-rocm \
|
|
.
|
|
|
|
- name: Push images
|
|
run: |
|
|
docker push git.wylab.me/wylab/llama.cpp:server-rocm-${{ steps.tag.outputs.build_num }}
|
|
docker push git.wylab.me/wylab/llama.cpp:server-rocm
|