File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed
Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Images (Dry Run)
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch_name :
7+ description : ' Branch to build from'
8+ required : true
9+ type : string
10+ build_target :
11+ description : ' Build target'
12+ required : true
13+ type : choice
14+ options :
15+ - all
16+ - cpu
17+ - gpu
18+ - rocm
19+
20+ jobs :
21+ build-images :
22+ env :
23+ DOCKER_BUILDKIT : 1
24+ BUILDKIT_STEP_LOG_MAX_SIZE : 10485760
25+ strategy :
26+ matrix :
27+ include :
28+ - build_target : " cpu"
29+ platform : " amd64"
30+ runs_on : " ubuntu-latest"
31+ - build_target : " gpu"
32+ platform : " amd64"
33+ runs_on : " ubuntu-latest"
34+ - build_target : " cpu"
35+ platform : " arm64"
36+ runs_on : " ubuntu-24.04-arm"
37+ - build_target : " gpu"
38+ platform : " arm64"
39+ runs_on : " ubuntu-24.04-arm"
40+ - build_target : " rocm"
41+ platform : " amd64"
42+ runs_on : " ubuntu-latest"
43+ runs-on : ${{ matrix.runs_on }}
44+ if : inputs.build_target == 'all' || inputs.build_target == matrix.build_target
45+ steps :
46+ - name : Checkout repository
47+ uses : actions/checkout@v4
48+ with :
49+ ref : ${{ inputs.branch_name }}
50+
51+ - name : Free disk space
52+ run : |
53+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache
54+ docker system prune -af
55+
56+ - name : Set up Docker Buildx
57+ uses : docker/setup-buildx-action@v3
58+ with :
59+ driver-opts : |
60+ image=moby/buildkit:latest
61+ network=host
62+
63+ - name : Build image
64+ run : |
65+ TARGET="${{ matrix.build_target }}-${{ matrix.platform }}"
66+ docker buildx bake $TARGET --progress=plain
You can’t perform that action at this time.
0 commit comments