Skip to content

Commit 994fa62

Browse files
committed
Fix build for ubuntu-20.04
1 parent b59bfae commit 994fa62

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
runs-on: ${{matrix.os}}
201201
strategy:
202202
matrix:
203-
os: [ubuntu-22.04, windows-latest, macos-13, ubuntu-20.04]
203+
os: [ubuntu-22.04, windows-latest, macos-13]
204204
steps:
205205
- uses: actions/checkout@v4
206206
- uses: actions/setup-go@v5
@@ -216,6 +216,23 @@ jobs:
216216
name: secretcli-${{runner.os}}
217217
path: secretcli-${{runner.os}}
218218

219+
Ubuntu-2004-CLI:
220+
runs-on: ubuntu-20.04
221+
steps:
222+
- uses: actions/checkout@v4
223+
- uses: actions/setup-go@v5
224+
with:
225+
go-version: 1.21 # The Go version to download (if necessary) and use.
226+
- name: Build CLI
227+
shell: bash
228+
run: |
229+
SGX_MODE=SW make build_cli
230+
cp "secretcli" "secretcli-Ubuntu-20.04"
231+
- uses: actions/upload-artifact@v3
232+
with:
233+
name: secretcli-Ubuntu-20.04
234+
path: secretcli-Ubuntu-20.04
235+
219236
MacOS-ARM64-CLI:
220237
runs-on: macos-latest
221238
strategy:
@@ -337,6 +354,7 @@ jobs:
337354
build-deb-testnet-2004,
338355
# build-deb-mainnet,
339356
MacOS-ARM64-CLI,
357+
Ubuntu-2004-CLI,
340358
# check-hw-tool,
341359
# check-hw-tool-mainnet
342360
]
@@ -358,6 +376,9 @@ jobs:
358376
- uses: actions/download-artifact@v3
359377
with:
360378
name: secretcli-MacOS-arm64
379+
- uses: actions/download-artifact@v3
380+
with:
381+
name: secretcli-Ubuntu-20.04
361382
# - uses: actions/download-artifact@v3
362383
# with:
363384
# name: secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64.deb
@@ -384,6 +405,7 @@ jobs:
384405
secretcli-Windows
385406
secretcli-Linux
386407
secretcli-MacOS-arm64
408+
secretcli-Ubuntu-20.04
387409
388410
# secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64.deb
389411
# check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ GO_TAGS := $(build_tags)
149149
LD_FLAGS := $(ldflags)
150150

151151
ifeq ($(SGX_MODE), HW)
152-
CGO_LDFLAGS += -lsgx_epid
152+
CGO_LDFLAGS += -L/opt/sgxsdk/lib64 -lsgx_epid
153153
endif
154154

155155
all: build_all

0 commit comments

Comments
 (0)