From 54ea7feb2c3eee397b3534f1e636387b37d812d7 Mon Sep 17 00:00:00 2001 From: NathanBSC Date: Fri, 5 May 2023 16:02:26 +0800 Subject: [PATCH] fix: make BLST PORTABLE for release binary --- .github/workflows/pre-release.yml | 4 ++++ .github/workflows/release.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index e9979b0699..92cee17c12 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -6,6 +6,10 @@ on: tags: - 'pre-*' +env: + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" + CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" + jobs: build: name: Build Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e771923e56..18f043788b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: # Publish `v1.2.3` tags as releases. tags: - v* +env: + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" + CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" jobs: build: