ci: build builders

This commit is contained in:
rob thijssen
2025-09-13 10:58:17 +08:00
parent 9bfd75ba35
commit 94ef423ff9
2 changed files with 20 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
name: CUDA Builder
name: cuda builder
on:
workflow_dispatch:
@@ -6,7 +6,12 @@ on:
branches:
- main
paths:
- Containerfile
- cuda-builder.cf
pull_request:
branches:
- main
paths:
- cuda-builder.cf
permissions:
contents: read
@@ -23,8 +28,7 @@ jobs:
- 12.9.0
- 13.0.0
steps:
- name: Normalize owner and set IMAGE_NAME
shell: bash
- shell: bash
run: |
echo "IMAGE_NAME=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/cuda-builder" >> "$GITHUB_ENV"
@@ -56,7 +60,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
file: cuda-builder.cf
build-args: |
CUDA_TAG=${{ matrix.cuda_tag }}
pull: true

View File

@@ -12,11 +12,17 @@ ARG CUDA_TAG
ENV CUDA_TAG=${CUDA_TAG}
# System dependencies for building Rust/CUDA projects
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl ca-certificates pkg-config build-essential \
libssl-dev git clang cmake && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
pkg-config \
build-essential \
libssl-dev \
git \
clang \
cmake \
&& rm -rf /var/lib/apt/lists/*
# Install Rust (stable, minimal profile)
ENV RUSTUP_HOME=/opt/rustup \