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: