Skip to content

Commit

Permalink
Fix build for ubuntu-20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
iKapitonau committed Nov 1, 2024
1 parent b59bfae commit 994fa62
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macos-13, ubuntu-20.04]
os: [ubuntu-22.04, windows-latest, macos-13]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -216,6 +216,23 @@ jobs:
name: secretcli-${{runner.os}}
path: secretcli-${{runner.os}}

Ubuntu-2004-CLI:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21 # The Go version to download (if necessary) and use.
- name: Build CLI
shell: bash
run: |
SGX_MODE=SW make build_cli
cp "secretcli" "secretcli-Ubuntu-20.04"
- uses: actions/upload-artifact@v3
with:
name: secretcli-Ubuntu-20.04
path: secretcli-Ubuntu-20.04

MacOS-ARM64-CLI:
runs-on: macos-latest
strategy:
Expand Down Expand Up @@ -337,6 +354,7 @@ jobs:
build-deb-testnet-2004,
# build-deb-mainnet,
MacOS-ARM64-CLI,
Ubuntu-2004-CLI,
# check-hw-tool,
# check-hw-tool-mainnet
]
Expand All @@ -358,6 +376,9 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: secretcli-MacOS-arm64
- uses: actions/download-artifact@v3
with:
name: secretcli-Ubuntu-20.04
# - uses: actions/download-artifact@v3
# with:
# name: secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64.deb
Expand All @@ -384,6 +405,7 @@ jobs:
secretcli-Windows
secretcli-Linux
secretcli-MacOS-arm64
secretcli-Ubuntu-20.04
# secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64.deb
# check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ GO_TAGS := $(build_tags)
LD_FLAGS := $(ldflags)

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

all: build_all
Expand Down

0 comments on commit 994fa62

Please sign in to comment.