File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 2222 artifact_name : bigquery-emulator
2323 asset_name : bigquery-emulator-linux-amd64
2424 platform : linux/amd64
25- - runner : runs-on=${{github.run_id}}/runner=4cpu-linux-arm64
25+ - runner : ubuntu-24.04-arm
2626 artifact_name : bigquery-emulator
2727 asset_name : bigquery-emulator-linux-arm64
2828 platform : linux/arm64
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ RUN go mod download
1111
1212RUN make emulator/build
1313
14- FROM debian:bullseye AS emulator
14+ # Since the binary uses dynamic linking we must use the same base image as the build runtime
15+ FROM ghcr.io/recidiviz/go-zetasql:0.5.5-recidiviz.3 AS emulator
1516
1617COPY --from=0 /work/bigquery-emulator /bin/bigquery-emulator
1718
Original file line number Diff line number Diff line change 11VERSION ?= latest
22REVISION := $(shell git rev-parse --short HEAD)
33
4- UNAME_OS := $(shell uname -s)
5- UNAME_ARCH := $(shell uname -m)
6- ifeq ($(UNAME_OS ) ,Linux)
7- ifeq ($(UNAME_ARCH),aarch64)
8- STATIC_LINK_FLAG := -linkmode external -extldflags "-static -fPIE -v"
9- else
10- STATIC_LINK_FLAG := -linkmode external -extldflags "-static -v"
11- endif
12- endif
13-
144emulator/build :
15- CGO_ENABLED=1 CXX=clang++ CGO_CFLAGS=" -fPIE" CGO_CXXFLAGS=" -fPIE" go build -work -a -x -o bigquery-emulator \
16- -ldflags=' ${STATIC_LINK_FLAG}' \
5+ CGO_ENABLED=1 CXX=clang++ go build -o bigquery-emulator \
176 ./cmd/bigquery-emulator
187
198docker/build :
You can’t perform that action at this time.
0 commit comments