File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,18 @@ jobs:
4545 build :
4646 name : Build ${{ matrix.arch }} plugin
4747 needs : init
48- runs-on : ubuntu-latest
48+ runs-on : ${{ matrix.runs-on }}
4949 permissions :
5050 contents : read
5151 packages : write
5252 id-token : write
5353 strategy :
5454 matrix :
5555 arch : ${{ fromJson(needs.init.outputs.architectures) }}
56+ include :
57+ - runs-on : ubuntu-24.04
58+ - arch : aarch64
59+ runs-on : ubuntu-24.04-arm
5660 steps :
5761 - name : Checkout the repository
5862 uses : actions/checkout@v6.0.2
7276 - name : Build plugin
7377 uses : home-assistant/builder@2025.11.0
7478 with :
79+ image : ${{ matrix.arch }}
7580 args : |
7681 $BUILD_ARGS \
7782 --${{ matrix.arch }} \
Original file line number Diff line number Diff line change 11ARG BUILD_FROM
22
3- FROM --platform=amd64 golang:1.23.3-alpine3.20 AS builder
3+ FROM golang:1.23.3-alpine3.20 AS builder
44
55WORKDIR /usr/src
66ARG BUILD_ARCH
3030 && go mod tidy \
3131 && go generate \
3232 && \
33- if [ "${BUILD_ARCH}" = "armhf" ]; then \
34- make coredns SYSTEM="CGO_ENABLED=0 GOOS=linux GOARM=6 GOARCH=arm" ; \
35- elif [ "${BUILD_ARCH}" = "armv7" ]; then \
36- make coredns SYSTEM="CGO_ENABLED=0 GOOS=linux GOARM=7 GOARCH=arm" ; \
37- elif [ "${BUILD_ARCH}" = "aarch64" ]; then \
33+ if [ "${BUILD_ARCH}" = "aarch64" ]; then \
3834 make coredns SYSTEM="CGO_ENABLED=0 GOOS=linux GOARCH=arm64" ; \
39- elif [ "${BUILD_ARCH}" = "i386" ]; then \
40- make coredns SYSTEM="CGO_ENABLED=0 GOOS=linux GOARCH=386" ; \
4135 elif [ "${BUILD_ARCH}" = "amd64" ]; then \
4236 make coredns SYSTEM="CGO_ENABLED=0 GOOS=linux GOARCH=amd64" ; \
4337 else \
You can’t perform that action at this time.
0 commit comments