Skip to content

Commit 5908f29

Browse files
authored
Add multi-arch Docker image for x86-64 and arm64 (#1431)
<!-- .github/pull_request_template.md --> ## 📌 Description <!-- What does this PR do? Briefly describe the changes and why they’re needed. --> ## 🔍 Related Issues <!-- Link any related issues here --> ## 🚀 Pull Request Checklist Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete. ### ✅ Pre-commit Checks - [ ] I have installed `pre-commit` by running `pip install pre-commit` (or used your preferred method). - [ ] I have installed the hooks with `pre-commit install`. - [ ] I have run the hooks manually with `pre-commit run --all-files` and fixed any reported issues. > If you are unsure about how to set up `pre-commit`, see [the pre-commit documentation](https://pre-commit.com/). ## 🧪 Tests - [ ] Tests have been added or updated as needed. - [ ] All tests are passing (`unittest`, etc.). ## Reviewer Notes <!-- Optional: anything you'd like reviewers to focus on, concerns, etc. -->
1 parent 32cfac4 commit 5908f29

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/release-ci-docker.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,31 @@ on:
55

66
jobs:
77
build:
8-
strategy:
9-
matrix:
10-
include:
11-
- os: ubuntu-latest
12-
arch: amd64
13-
- os: [self-hosted, Linux, ARM64]
14-
arch: arm64
15-
runs-on: ${{ matrix.os }}
8+
runs-on: ubuntu-latest
169
steps:
1710
- uses: actions/checkout@v4
11+
12+
- name: Set up QEMU
13+
uses: docker/setup-qemu-action@v3
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
1818
- name: Login to Docker Hub
1919
uses: docker/login-action@v3
2020
with:
2121
username: flashinfer
2222
password: ${{ secrets.DOCKERHUB_TOKEN }}
2323

24-
- uses: docker/build-push-action@v4
24+
- name: Build and push multi-arch image
25+
uses: docker/build-push-action@v5
2526
with:
2627
context: docker
2728
file: docker/Dockerfile.ci_gpu
29+
platforms: linux/amd64,linux/arm64
2830
push: true
29-
tags: flashinfer/flashinfer-ci:latest
31+
tags: |
32+
flashinfer/flashinfer-ci:latest
33+
flashinfer/flashinfer-ci:${{ github.sha }}
34+
cache-from: type=registry,ref=flashinfer/flashinfer-ci:buildcache
35+
cache-to: type=registry,ref=flashinfer/flashinfer-ci:buildcache,mode=max

0 commit comments

Comments
 (0)