Merge pull request #432 from kprinssu/upstream-master #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Images (Dry Run) | ||
|
Check failure on line 1 in .github/workflows/test_build.yml
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| branch_name: | ||
| description: 'Branch to build from' | ||
| required: true | ||
| type: string | ||
| build_target: | ||
| description: 'Build target' | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - all | ||
| - cpu | ||
| - gpu | ||
| - rocm | ||
| jobs: | ||
| build-images: | ||
| env: | ||
| DOCKER_BUILDKIT: 1 | ||
| BUILDKIT_STEP_LOG_MAX_SIZE: 10485760 | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - build_target: "cpu" | ||
| platform: "amd64" | ||
| runs_on: "ubuntu-latest" | ||
| - build_target: "gpu" | ||
| platform: "amd64" | ||
| runs_on: "ubuntu-latest" | ||
| - build_target: "cpu" | ||
| platform: "arm64" | ||
| runs_on: "ubuntu-24.04-arm" | ||
| - build_target: "gpu" | ||
| platform: "arm64" | ||
| runs_on: "ubuntu-24.04-arm" | ||
| - build_target: "rocm" | ||
| platform: "amd64" | ||
| runs_on: "ubuntu-latest" | ||
| runs-on: ${{ matrix.runs_on }} | ||
| if: inputs.build_target == 'all' || inputs.build_target == matrix.build_target | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.branch_name }} | ||
| - name: Free disk space | ||
| run: | | ||
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache | ||
| docker system prune -af | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| with: | ||
| driver-opts: | | ||
| image=moby/buildkit:latest | ||
| network=host | ||
| - name: Build image | ||
| run: | | ||
| TARGET="${{ matrix.build_target }}-${{ matrix.platform }}" | ||
| docker buildx bake $TARGET --progress=plain | ||