Skip to content

Commit

Permalink
ci: support blst portable build
Browse files Browse the repository at this point in the history
  • Loading branch information
yoomee1313 committed Jan 16, 2024
1 parent 75c149a commit ce96e7f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,17 @@ jobs:
os-network: "darwin-amd64"
- upload-repo

packaging-darwin-test:
executor: darwin-executor
steps:
- checkout
- install-darwin-dependencies
- pre-build
- build-packaging:
os-network: "darwin-amd64"
- store_artifacts:
path: build/

packaging-darwin-baobab:
executor: darwin-executor
steps:
Expand Down Expand Up @@ -572,6 +583,8 @@ workflows:
jobs:
- build:
filters: *filter-version-not-release
- packaging-darwin-test:
filters: *filter-version-not-release
- test-datasync:
filters: *filter-version-not-release
- test-networks:
Expand All @@ -596,6 +609,7 @@ workflows:
- pass-tests:
requires:
- build
- packaging-darwin-test
- test-datasync
- test-networks
- test-node
Expand Down
3 changes: 3 additions & 0 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ func goToolArch(arch string, cc string, subcmd string, args ...string) *exec.Cmd
if cc != "" {
cmd.Env = append(cmd.Env, "CC="+cc)
}
// CKZG by default is not portable, append the necessary build flags to make
// it not rely on modern CPU instructions and enable linking against.
cmd.Env = append(cmd.Env, "CGO_CFLAGS=-O2 -g -D__BLST_PORTABLE__")
for _, e := range os.Environ() {
if strings.HasPrefix(e, "GOPATH=") || strings.HasPrefix(e, "GOBIN=") {
continue
Expand Down

0 comments on commit ce96e7f

Please sign in to comment.