51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Build SimApp
|
|
on:
|
|
pull_request:
|
|
merge_group:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release/**
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}-build
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-arch: ["amd64", "arm", "arm64"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
check-latest: true
|
|
###################
|
|
#### Build App ####
|
|
###################
|
|
- name: Build
|
|
run: GOARCH=${{ matrix.go-arch }} make build
|
|
- name: Build Legacy
|
|
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS=legacy make build
|
|
- name: Build with rocksdb backend
|
|
if: |
|
|
env.GIT_DIFF &&
|
|
matrix.go-arch == 'amd64'
|
|
run: nix run . -- version --long
|
|
###################
|
|
## Build Tooling ##
|
|
###################
|
|
- name: Build Cosmovisor
|
|
run: GOARCH=${{ matrix.go-arch }} make cosmovisor
|
|
- name: Build Confix
|
|
run: GOARCH=${{ matrix.go-arch }} make confix
|
|
- name: Build Hubl
|
|
run: GOARCH=${{ matrix.go-arch }} make hubl
|