Skip to content

Commit ed643d8

Browse files
committed
amd64
1 parent 4831342 commit ed643d8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build-yunyu-server-native-image.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ env:
1818

1919
jobs:
2020
build-and-push:
21-
# 优先使用 GitHub 的原生 ARM64 Runner 以大幅提升构建速度
22-
runs-on: ubuntu-24.04-arm64
21+
# 回退到标准的 AMD64 Runner,构建速度较快,但产物不支持在 ARM 机器上原生运行
22+
runs-on: ubuntu-latest
2323
permissions:
2424
contents: read
2525
packages: write
@@ -35,7 +35,6 @@ jobs:
3535
distribution: 'temurin'
3636
cache: 'maven'
3737

38-
# 原生 ARM 环境下不需要 QEMU,但为了兼容性可以保留,或者直接去掉
3938
- name: Set up Docker Buildx
4039
uses: docker/setup-buildx-action@v3
4140

@@ -61,7 +60,7 @@ jobs:
6160
context: .
6261
file: ./docker/native-image/Dockerfile
6362
push: true
64-
platforms: linux/arm64
63+
platforms: linux/amd64
6564
tags: ${{ steps.meta.outputs.tags }}
6665
labels: ${{ steps.meta.outputs.labels }}
6766
cache-from: type=gha

0 commit comments

Comments
 (0)