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 21e5186 commit 5ea3779
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/chihuahua-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: chihuahua-build

on:
pull_request:
branches:
- main
paths:
- 'bin/builder'
- 'arch.Dockerfile'
- 'alpine.Dockerfile'
- '.github/workflows/docker-build.yml'
- '.github/workflows/chihuahua-build.yml'

push:
branches:
- main
paths:
- 'bin/builder'
- 'arch.Dockerfile'
- 'alpine.Dockerfile'
- '.github/workflows/docker-build.yml'
- '.github/workflows/chihuahua-build.yml'

jobs:
chihuahua-build:
uses: ./.github/workflows/docker-build.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
#platform: ["linux/amd64", "linux/arm64"] # need arm runners
platform: ["linux/amd64"]
distro: ["alpine"]
version:
- "v1.0.0"
- "v1.1.0"
- "v2.0.1"
- "v2.0.2"
- "v2.1.0"
- "v2.2.1"
- "v3.1.0"
- "v4.0.0"
- "v4.1.0"
- "v4.2.0"
- "v4.2.3"
- "v5.0.0"
- "v5.0.1"
- "v5.0.2"

include:
# Include Defaults (keep at top)
- name: "chihuahua"
binary: "chihuahuad"
build_command: "make install"
chain_registry_name: "chihuahua"
go_version: "1.20"
repo: "ChihuahuaChain/chihuahua"
os: "linux"
arch: "amd64"

with:
binary: ${{ matrix.binary }}
build_command: ${{ matrix.build_command }}
chain_registry_name: ${{ matrix.chain_registry_name }}
go_version: ${{ matrix.go_version }}
name: ${{ matrix.name }}
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
platform: ${{ matrix.platform }}
repo: ${{ matrix.repo }}
version: ${{ matrix.version }}
30 changes: 30 additions & 0 deletions builds/sei.2.0.34beta.alpine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh -x

BASEDIR=$(dirname "$0")
DOCKER_DIR="${BASEDIR}/.."
IMAGE="alpine"
NAME="sei"
REPO="sei-protocol/sei-chain"
TAG="2.0.34beta-atlantic-2"
GO_VERSION="1.18"

cd "${DOCKER_DIR}"
docker buildx build "." -f "${IMAGE}.Dockerfile" \
--load \
--progress plain \
--tag "terraformlabs/${NAME}:${TAG}" \
--platform "linux/amd64" \
--build-arg "OS=linux" \
--build-arg "ARCH=amd64" \
--build-arg "APP_NAME=${NAME}" \
--build-arg "BIN_NAME=${NAME}d" \
--build-arg "BUILD_COMMAND=make install" \
--build-arg "BUILD_TAGS=netgo ledger muslc" \
--build-arg "COSMOS_BUILD_OPTIONS=" \
--build-arg "GIT_TAG=${TAG}" \
--build-arg "GIT_REPO=${REPO}" \
--build-arg "GO_VERSION=${GO_VERSION}" \
--build-arg "MIMALLOC_VERSION=" \
--build-arg "CHECK_STATICALLY=false" \
--build-arg "LDFLAGS=-w -s -linkmode=external -extldflags \"-Wl,-z,muldefs -static -lgcompat\"" \
$@

0 comments on commit 5ea3779

Please sign in to comment.