Skip to content

Commit d816b5f

Browse files
committed
add dedicated arm runner for build
1 parent f0c596e commit d816b5f

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,18 @@ env:
1717
jobs:
1818
build:
1919
name: Build images
20-
runs-on: ubuntu-24.04
2120
strategy:
2221
fail-fast: false
2322
matrix:
2423
platform: [
25-
{name: "linux/amd64", tag: "amd64"},
26-
{name: "linux/arm64/v8", tag: "arm64v8"}
24+
{name: "linux/amd64", tag: "amd64", runner: "ubuntu-24.04"},
25+
{name: "linux/arm64/v8", tag: "arm64v8", runner: "ubuntu-24.04-arm"}
2726
]
27+
runs-on: ${{ matrix.platform.runner }}
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v4
3131

32-
- name: Install qemu dependency
33-
run: |
34-
sudo apt-get update
35-
sudo apt-get install -y qemu-user-static
36-
3732
- name: Build Image
3833
run: buildah bud --platform ${{ matrix.platform.name }} -f ./Dockerfile -t ${{ env.IMAGE_NAME }}:${{ matrix.platform.tag }} .
3934

‎.github/workflows/server.yml‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,18 @@ env:
1717
jobs:
1818
build:
1919
name: Build images
20-
runs-on: ubuntu-24.04
2120
strategy:
2221
fail-fast: false
2322
matrix:
2423
platform: [
25-
{name: "linux/amd64", tag: "amd64"},
26-
{name: "linux/arm64/v8", tag: "arm64v8"}
24+
{name: "linux/amd64", tag: "amd64", runner: "ubuntu-24.04"},
25+
{name: "linux/arm64/v8", tag: "arm64v8", runner: "ubuntu-24.04-arm"}
2726
]
27+
runs-on: ${{ matrix.platform.runner }}
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v4
3131

32-
- name: Install qemu dependency
33-
run: |
34-
sudo apt-get update
35-
sudo apt-get install -y qemu-user-static
36-
3732
- name: Build Image
3833
run: buildah bud --platform ${{ matrix.platform.name }} -f ./Dockerfile.server -t ${{ env.IMAGE_NAME }}:${{ matrix.platform.tag }} .
3934

0 commit comments

Comments
 (0)