Skip to content

Commit cc577a2

Browse files
committed
Merge branch 'update_vars' into 'dev'
feat: add repo vars to action file See merge request maix_sw/k230_linux_sdk!233
2 parents 634049a + 1169e9f commit cc577a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ env:
1313
NFS_ROOT: /data/nfs_server
1414
HW_VER: v0.1
1515
WORKSPACE: /workspace/
16+
GH_PROXY: socks5://proxy.b-bug.org:1080
17+
DL_SITE: https://ai.b-bug.org/k230/downloads/dl/
18+
1619

1720
defaults:
1821
run:
@@ -91,7 +94,7 @@ jobs:
9194
ls -alht
9295
rm -rf k230_linux_sdk
9396
echo "set github proxy"
94-
git config --global https.proxy ${{ vars.GH_PROXY }}
97+
git config --global https.proxy ${GH_PROXY}
9598
git clone --depth=10 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk || git clone --depth=10 --branch=${PR_BRANCH} https://github.com/${PR_REPO} k230_linux_sdk
9699
cd k230_linux_sdk || exit 1
97100
git fetch origin ${PR_BRANCH} || exit 1
@@ -106,7 +109,7 @@ jobs:
106109
cd ${WORKSPACE} || exit 1
107110
cd k230_linux_sdk || exit 1
108111
echo "----------start to build linux sdk image----------"
109-
time make CONF=${CONF} BR2_PRIMARY_SITE=${{ vars.DL_SITE }} || exit 1
112+
time make CONF=${CONF} BR2_PRIMARY_SITE=${DL_SITE} || exit 1
110113
echo "----------show linux sdk image build output----------"
111114
pwd
112115
du -h -d 2 output/${CONF}/ || exit 1

0 commit comments

Comments
 (0)