Skip to content

Commit

Permalink
ci: build simapp with sqlite deps
Browse files Browse the repository at this point in the history
  • Loading branch information
auricom committed Jan 2, 2025
1 parent 8cb357c commit 55f1f88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ jobs:
with:
go-version: "1.23"
check-latest: true
- name: install aarch64-gcc
if: matrix.go-arch == 'arm64'
run: sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: Get rocksdb version
if: matrix.go-arch == 'amd64'
run: ./.github/scripts/get-rocksdb-version.sh
- name: Fix permissions for cache
if: matrix.go-arch == 'amd64'
run: sudo chown $(whoami) /usr/local/lib /usr/local/include
- name: Restore rocksdb libraries cache
id: cache-rocksdb
Expand All @@ -47,7 +52,7 @@ jobs:
###################
#### Build App ####
###################
- name: Build v2
- name: Build
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS=v2 make build
- name: Build with rocksdb backend
if: matrix.go-arch == 'amd64'
Expand Down
7 changes: 5 additions & 2 deletions scripts/build/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ifeq (debug,$(findstring debug,$(COSMOS_BUILD_OPTIONS)))
BUILD_FLAGS += -gcflags "all=-N -l"
endif

#? all: Run tools build
#? all: Run tools build
all: build


Expand All @@ -127,7 +127,10 @@ build-linux-arm64:
GOOS=linux GOARCH=arm64 LEDGER_ENABLED=false $(MAKE) build

$(BUILD_TARGETS): go.sum $(BUILDDIR)/
cd ${CURRENT_DIR}/${SIMAPP} && go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...
cd ${CURRENT_DIR}/${SIMAPP} && \
CC=$(shell if [ "$(shell go env GOARCH)" = "arm64" ]; then echo "aarch64-linux-gnu-gcc"; else echo "gcc"; fi) \
CGO_ENABLED=1 \
go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...

$(BUILDDIR)/:
mkdir -p $(BUILDDIR)/
Expand Down

0 comments on commit 55f1f88

Please sign in to comment.