Skip to content

Commit

Permalink
Switch agoric to agd only build
Browse files Browse the repository at this point in the history
  • Loading branch information
minniux committed Aug 28, 2024
1 parent 8507212 commit b843d57
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/agoric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Build and push agoric Docker image
run: |
./heighliner build -c agoric --go-version 1.21 --git-ref ${{ env.VERSION }}
./heighliner build -c agoric-agd --go-version 1.21 --git-ref ${{ env.VERSION }}
- name: Tag and push Docker image
run: |
Expand Down
37 changes: 37 additions & 0 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,43 @@
ln -s /go/src/github.com/p2p-org/agoric-sdk/golang/cosmos/build/libagcosmosdaemon.so /build/agoric-sdk/golang/cosmos/build/libagcosmosdaemon.so
ln -s /root/.nvm/versions/node/*/bin/node /bin/node
# Agoric-sdk
- name: agoric-agd
dockerfile: cargo
github-organization: Agoric
github-repo: agoric-sdk
build-env:
- LEDGER_ENABLED=false
build-target: |
set -eux
cd golang/cosmos
export CGO_ENABLED=1 GOOS=linux GOARCH=${TARGETARCH} CC=${ARCH}-linux-gnu-gcc CXX=${ARCH}-linux-gnu-g++
COMMIT=$(git log -1 --format='%H')
COMMON_LDFLAGS="-X github.com/cosmos/cosmos-sdk/version.Name=agoric \
-X github.com/cosmos/cosmos-sdk/version.AppName=agd \
-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$BUILD_TAGS" \
-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT"
# Build daemon lib
go build -v -mod=readonly -tags "$BUILD_TAGS" -ldflags "$COMMON_LDFLAGS" -buildmode=c-shared -o build/libagcosmosdaemon.so ./cmd/libdaemon/main.go
# Build agd
go build -v -mod=readonly -tags "$BUILD_TAGS" -ldflags "$COMMON_LDFLAGS" -o ../../bin/agd ./cmd/agd
# Move to final location
cd ../../
mkdir /agoric-sdk
mv bin golang /agoric-sdk
directories:
- /agoric-sdk
final-image: |
set -eux
ln -s /agoric-sdk/bin/agd /bin/agd
mkdir -p /go/src/github.com/p2p-org/agoric-sdk/golang/cosmos/build /build/agoric-sdk/golang/cosmos/build
mv /agoric-sdk/golang/cosmos/build/libagcosmosdaemon.so /go/src/github.com/p2p-org/agoric-sdk/golang/cosmos/build/
ln -s /go/src/github.com/p2p-org/agoric-sdk/golang/cosmos/build/libagcosmosdaemon.so /build/agoric-sdk/golang/cosmos/build/libagcosmosdaemon.so
# Akash
- name: akash
github-organization: akash-network
Expand Down

0 comments on commit b843d57

Please sign in to comment.