chore: the great replace removal (release/v0.52.x) (1/3) #42296
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | |
go-arch: ["amd64", "arm64"] # drop 32 bit support for now (and maybe forever) | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
- name: Get rocksdb version | |
run: ./.github/scripts/get-rocksdb-version.sh | |
- name: Fix permissions for cache | |
run: sudo chown $(whoami) /usr/local/lib /usr/local/include | |
- name: Restore rocksdb libraries cache | |
id: cache-rocksdb | |
if: matrix.go-arch == 'amd64' | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
/usr/local/lib/librocksdb.* | |
/usr/local/include/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-${{ matrix.go-arch }} | |
- name: Install rocksdb deps | |
if: matrix.go-arch == 'amd64' | |
run: ./.github/scripts/install-rocksdb-deps.sh | |
- name: Install rocksdb | |
if: matrix.go-arch == 'amd64' && steps.cache-rocksdb.outputs.cache-hit != 'true' | |
run: ./.github/scripts/install-rocksdb.sh | |
################### | |
#### 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: matrix.go-arch == 'amd64' | |
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS="rocksdb" make build | |
- name: Build with BLS12381 | |
if: matrix.go-arch == 'amd64' | |
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS="bls12381" make build | |
- name: Build with Secp_cgo | |
if: matrix.go-arch == 'amd64' | |
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS="secp" make build | |
################### | |
## Build Tooling ## | |
################### | |
- name: Build Confix | |
run: GOARCH=${{ matrix.go-arch }} make confix |