Skip to content

Commit cdc07ab

Browse files
committed
Build check-hw for ubuntu-20.04
1 parent d95d488 commit cdc07ab

File tree

1 file changed

+47
-5
lines changed

1 file changed

+47
-5
lines changed

.github/workflows/release.yaml

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,46 @@ jobs:
368368
369369
- uses: actions/upload-artifact@v3
370370
with:
371-
name: check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz
372-
path: check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz
371+
name: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-22.04.tar.gz
372+
path: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-22.04.tar.gz
373+
374+
check-hw-tool-2004:
375+
runs-on: ubuntu-20.04
376+
env: # Or as an environment variable
377+
SPID: ${{ secrets.SPID_TESTNET }}
378+
API_KEY: ${{ secrets.API_KEY_TESTNET }}
379+
API_KEY_MAINNET: ${{ secrets.API_KEY_MAINNET }}
380+
steps:
381+
- uses: actions/checkout@v4
382+
with:
383+
submodules: recursive
384+
- name: Get the version
385+
id: get_version
386+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
387+
- name: Build check-hw-tool image
388+
uses: docker/build-push-action@v4
389+
with:
390+
file: deployment/dockerfiles/Dockerfile.2004
391+
context: .
392+
load: true
393+
tags: check_hw_tool_build
394+
secrets: |
395+
API_KEY=${{ secrets.API_KEY_TESTNET }}
396+
SPID=${{ secrets.SPID_TESTNET }}
397+
API_KEY_MAINNET=${{ secrets.API_KEY_MAINNET }}
398+
build-args: |
399+
BUILD_VERSION=${{ steps.get_version.outputs.VERSION }}
400+
SGX_MODE=HW
401+
target: compile-check-hw-tool
402+
- name: Run check-hw-tool image
403+
run: |
404+
docker run -e VERSION=${{ steps.get_version.outputs.VERSION }} -v $GITHUB_WORKSPACE/build:/build check_hw_tool_build
405+
cp build/check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-20.04.tar.gz
406+
407+
- uses: actions/upload-artifact@v3
408+
with:
409+
name: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-20.04.tar.gz
410+
path: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-20.04.tar.gz
373411

374412
publish-localsecret:
375413
runs-on: ubuntu-22.04
@@ -434,6 +472,7 @@ jobs:
434472
MacOS-ARM64-CLI,
435473
Ubuntu-2004-CLI,
436474
check-hw-tool,
475+
check-hw-tool-2004,
437476
# check-hw-tool-mainnet
438477
]
439478
runs-on: ubuntu-22.04
@@ -471,7 +510,10 @@ jobs:
471510
name: secretnetwork_${{ steps.get_version.outputs.VERSION }}_testnet_goleveldb_amd64_ubuntu-22.04.deb
472511
- uses: actions/download-artifact@v3
473512
with:
474-
name: check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz
513+
name: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-22.04.tar.gz
514+
- uses: actions/download-artifact@v3
515+
with:
516+
name: check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-20.04.tar.gz
475517
# - uses: actions/download-artifact@v3
476518
# with:
477519
# name: check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz
@@ -489,5 +531,5 @@ jobs:
489531
secretcli-Ubuntu-20.04
490532
secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64_ubuntu-20.04.deb
491533
secretnetwork_${{ steps.get_version.outputs.VERSION }}_mainnet_goleveldb_amd64_ubuntu-22.04.deb
492-
check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz
493-
check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz
534+
check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-22.04.tar.gz
535+
check_hw_${{ steps.get_version.outputs.VERSION }}_ubuntu-20.04.tar.gz

0 commit comments

Comments
 (0)