Skip to content

Commit

Permalink
add chihuahau
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Oct 20, 2023
1 parent f2abe75 commit 21e5186
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sei-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
repo_tag: "1.0.6beta"
- version: "2.0.34beta"
repo_tag: "2.0.34beta-atlantic-2"
go_version: "1.18"
- version: "2.0.37beta"
repo_tag: "2.0.37beta"
- version: "2.0.39beta"
Expand Down
11 changes: 7 additions & 4 deletions alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ARG GO_VERSION="1.20"
FROM golang:${GO_VERSION}-alpine as base

# NOTE: add libusb-dev to run with LEDGER_ENABLED=true
RUN set -eu &&\
apk update &&\
RUN set -eu && \
apk update && \
apk add --no-cache \
ca-certificates \
linux-headers \
Expand Down Expand Up @@ -65,6 +65,7 @@ ARG BUILD_TAGS="netgo,ledger,muslc"
ARG BUILD_TAGS=""
ARG LDFLAGS='-w -s -linkmode external -extldflags "-Wl,-z,muldefs -static"'
#ARG LDFLAGS="-extldflags '-L/go/src/mimalloc/build -lmimalloc -Wl,-z,muldefs -static'"
ARG CHECK_STATICALLY="true"

ENV APP_NAME=${APP_NAME} \
BUILD_COMMAND=${BUILD_COMMAND} \
Expand All @@ -85,8 +86,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
# verify static binary
RUN set -x && \
file ${GOPATH}/bin/${BIN_NAME} && \
echo "Ensuring binary is statically linked ..." && \
(file ${GOPATH}/bin/${BIN_NAME} | grep "statically linked")
if [ "${CHECK_STATICALLY}" = "true" ]; then \
echo "Ensuring binary is statically linked ..." && \
(file ${GOPATH}/bin/${BIN_NAME} | grep "statically linked"); \
fi

################################################################################
FROM --platform=${BUILDPLATFORM} alpine:latest as prod
Expand Down
29 changes: 0 additions & 29 deletions builds/sei.1.0.6beta.alpine.sh

This file was deleted.

0 comments on commit 21e5186

Please sign in to comment.